source: SMSSender/lib/libdatatypes/src/abstract/abstractgateway.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: 639 bytes
Line 
1/*
2 * AbstractGateway.h
3 *
4 *  Created on: Jul 9, 2009
5 *      Author: saemy
6 */
7
8#ifndef ABSTRACTGATEWAY_H_
9#define ABSTRACTGATEWAY_H_
10
11#include <igateway.h>
12
13class AbstractGateway: public QObject, public IGateway {
14    Q_OBJECT
15    Q_INTERFACES(IGateway)
16
17public:
18    AbstractGateway()
19        : defaultStorage_(NULL)
20    {};
21
22    virtual IAccount* createAccountInstance() const;
23    virtual IAccount* createAccountInstance(IStorage* storage) const =0;
24
25    virtual IStorage* defaultStorage() const;
26    virtual void      setDefaultStorage(IStorage* storage);
27
28private:
29    IStorage* defaultStorage_;
30};
31
32#endif /* ABSTRACTACCOUNT_H_ */
Note: See TracBrowser for help on using the repository browser.