source: SMSSender/lib/libgateway/src/business/AbstractGateway.h @ 41:680c6a482e9d

3.0
Last change on this file since 41:680c6a482e9d was 41:680c6a482e9d, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
File size: 647 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, virtual 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.