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:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * BCContact.h |
---|
3 | * |
---|
4 | * Created on: May 17, 2009 |
---|
5 | * Author: saemy |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef SCONTACT_H_ |
---|
9 | #define SCONTACT_H_ |
---|
10 | |
---|
11 | #include <QObject> |
---|
12 | |
---|
13 | #include "icontact.h" |
---|
14 | |
---|
15 | #include "snumber.h" |
---|
16 | |
---|
17 | class SContact: public QObject, public IContact { |
---|
18 | Q_OBJECT |
---|
19 | Q_INTERFACES(IContact) |
---|
20 | |
---|
21 | public: |
---|
22 | SContact(); |
---|
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 SContactEventMapper* eventMapper() const; |
---|
37 | |
---|
38 | protected: |
---|
39 | virtual IContactEvents* contactEvents() const; |
---|
40 | |
---|
41 | private: |
---|
42 | SContactEventMapper* eventMapper_; |
---|
43 | |
---|
44 | int id_; |
---|
45 | QString name_; |
---|
46 | SNumber number_; |
---|
47 | QStringList aliases_; |
---|
48 | QImage image_; |
---|
49 | }; |
---|
50 | |
---|
51 | #endif /* SCONTACT_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.