source: SMSSender/lib/libdatatypes/src/abstract/persistence/abstractaccountstorageofficer.h @ 71:415b45c71663

3.0
Last change on this file since 71:415b45c71663 was 71:415b45c71663, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Reorganized all the libraries. libinterfaces and libgateways are removed now and libdatatypes contains now all these files.
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.