source: SMSSender/lib/libgateway/src/persistence/AbstractAccountStorageOfficer.h @ 43:10dd65d71f7f

3.0
Last change on this file since 43:10dd65d71f7f was 43:10dd65d71f7f, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Did a lot of work...
File size: 751 bytes
Line 
1/*
2 * AbstractAccountStorageOfficer.h
3 *
4 *  Created on: Jul 9, 2009
5 *      Author: saemy
6 */
7
8#ifndef ABSTRACTACCOUNTSTORAGEOFFICER_H_
9#define ABSTRACTACCOUNTSTORAGEOFFICER_H_
10
11#include <QString>
12
13#include <iaccount.h>
14#include <persistence/istorage.h>
15
16#include "AbstractStorageOfficer.h"
17
18class AbstractAccountStorageOfficer: public AbstractStorageOfficer {
19    Q_OBJECT
20
21public:
22    AbstractAccountStorageOfficer(IAccount* account, IStorage* storage);
23
24    virtual void readFromStorage();
25    virtual void writeToStorage() const;
26    virtual void removeFromStorage();
27
28protected:
29    virtual IAccount* account() const;
30
31    virtual QString getNamespace() const;
32
33private:
34    IAccount* account_;
35};
36
37#endif /* ABSTRACTACCOUNTSTORAGEOFFICER_H_ */
Note: See TracBrowser for help on using the repository browser.