source: SMSSender/lib/libdatatypes/src/abstract/persistence/abstractloginaccountstorageofficer.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: 887 bytes
Line 
1/*
2 * AbstractLoginStorageOfficer.h
3 *
4 *  Created on: Jul 9, 2009
5 *      Author: saemy
6 */
7
8#ifndef ABSTRACTLOGINACCOUNTSTORAGEOFFICER_H_
9#define ABSTRACTLOGINACCOUNTSTORAGEOFFICER_H_
10
11#include "persistence/istorage.h"
12#include "abstract/abstractloginaccount.h"
13
14#include "abstractaccountstorageofficer.h"
15
16class AbstractLoginAccountStorageOfficer: public AbstractAccountStorageOfficer {
17    Q_OBJECT
18
19public:
20    AbstractLoginAccountStorageOfficer(AbstractLoginAccount* account, IStorage* storage, const QString& encryptionPassword)
21        : AbstractAccountStorageOfficer(account, storage)
22        , ENCRYPTION_PWD(encryptionPassword)
23    {};
24
25    virtual void readFromStorage();
26    virtual void writeToStorage() const;
27
28protected:
29    virtual AbstractLoginAccount* account() const;
30
31private:
32    const QString ENCRYPTION_PWD;
33};
34
35#endif /* ABSTRACTLOGINACCOUNTSTORAGEOFFICER_H_ */
Note: See TracBrowser for help on using the repository browser.