3.0
Line | |
---|
1 | /* |
---|
2 | * BCContact.h |
---|
3 | * |
---|
4 | * Created on: May 17, 2009 |
---|
5 | * Author: saemy |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef BCCONTACT_H_ |
---|
9 | #define BCCONTACT_H_ |
---|
10 | |
---|
11 | #include <QObject> |
---|
12 | |
---|
13 | #include <icontact.h> |
---|
14 | |
---|
15 | #include "../snumber.h" |
---|
16 | |
---|
17 | class BCContact: public QObject, public IContact { |
---|
18 | Q_OBJECT |
---|
19 | Q_INTERFACES(IContact) |
---|
20 | |
---|
21 | public: |
---|
22 | BCContact(); |
---|
23 | |
---|
24 | virtual int id() const; |
---|
25 | virtual QString name() const; |
---|
26 | virtual SNumber number() const; |
---|
27 | virtual QStringList aliases() const; |
---|
28 | virtual QImage image() const; |
---|
29 | |
---|
30 | virtual void setId(int id); |
---|
31 | virtual void setName(const QString& name); |
---|
32 | virtual void setNumber(const SNumber& number); |
---|
33 | virtual void setAliases(const QStringList& aliases); |
---|
34 | virtual void setImage(const QImage& image); |
---|
35 | |
---|
36 | virtual ContactEventMapper* eventMapper() const; |
---|
37 | |
---|
38 | protected: |
---|
39 | virtual IContactEvents* contactEvents() const; |
---|
40 | |
---|
41 | private: |
---|
42 | ContactEventMapper* eventMapper_; |
---|
43 | |
---|
44 | int id_; |
---|
45 | QString name_; |
---|
46 | SNumber number_; |
---|
47 | QStringList aliases_; |
---|
48 | QImage image_; |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | namespace BC { |
---|
53 | class Contact: public BCContact {}; |
---|
54 | } // namespace BC |
---|
55 | |
---|
56 | #endif /* BCCONTACT_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.