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:
770 bytes
|
Line | |
---|
1 | /* |
---|
2 | * AccountEventMapper.h |
---|
3 | * |
---|
4 | * Created on: Jan 16, 2010 |
---|
5 | * Author: saemy |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef SACCOUNTEVENTMAPPER_H_ |
---|
9 | #define SACCOUNTEVENTMAPPER_H_ |
---|
10 | |
---|
11 | #include <QObject> |
---|
12 | |
---|
13 | #include "eventinterfaces.h" |
---|
14 | |
---|
15 | class IAccount; |
---|
16 | |
---|
17 | class SAccountEventMapper: public QObject, |
---|
18 | virtual public IAccountEvents { |
---|
19 | Q_OBJECT |
---|
20 | Q_INTERFACES(IAccountEvents) |
---|
21 | |
---|
22 | public: |
---|
23 | explicit SAccountEventMapper(IAccount* account) |
---|
24 | : account_(account) |
---|
25 | {}; |
---|
26 | IAccount* account() const { return account_; } |
---|
27 | |
---|
28 | signals: |
---|
29 | void idChanged(int oldId, int newId); |
---|
30 | void dataChanged(); |
---|
31 | void statusChanged(const QString& status); |
---|
32 | void progressChanged(int progress); |
---|
33 | |
---|
34 | private: |
---|
35 | IAccount* account_; |
---|
36 | }; |
---|
37 | |
---|
38 | #include <iaccount.h> |
---|
39 | |
---|
40 | #endif /* SACCOUNTEVENTMAPPER_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.