equal
deleted
inserted
replaced
16 */ |
16 */ |
17 #ifndef LOGSCONTACT_H |
17 #ifndef LOGSCONTACT_H |
18 #define LOGSCONTACT_H |
18 #define LOGSCONTACT_H |
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 #include <qtcontacts.h> |
21 #include <qcontact.h> |
22 #include <logsexport.h> |
22 #include <logsexport.h> |
23 |
23 |
24 //forward declarations |
24 //forward declarations |
25 class XQAiwRequest; |
25 class XQAiwRequest; |
26 class LogsDbConnector; |
26 class LogsDbConnector; |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
39 public: |
39 public: |
40 enum RequestType { |
40 enum RequestType { |
41 TypeLogsContactOpen, //contact is in phonebook, can open it |
41 TypeLogsContactOpen, //contact is in phonebook, can open it |
42 TypeLogsContactSave //contact isn't in phonebook, can save it |
42 TypeLogsContactSave, //contact isn't in phonebook, can save it |
|
43 TypeLogsContactOpenGroup //contact is a group in phonebook, can open it |
43 }; |
44 }; |
44 |
45 |
45 public: |
46 public: |
46 |
47 |
47 explicit LogsContact(LogsEvent& event, LogsDbConnector& dbConnector); |
48 explicit LogsContact(LogsEvent& event, LogsDbConnector& dbConnector); |
124 |
125 |
125 bool requestPhonebookService(const QString& interface, |
126 bool requestPhonebookService(const QString& interface, |
126 const QString& operation, |
127 const QString& operation, |
127 const QList<QVariant>& arguments); |
128 const QList<QVariant>& arguments); |
128 |
129 |
|
130 bool isContactGroup(); |
|
131 |
129 |
132 |
130 private: //data |
133 private: //data |
131 |
134 |
132 LogsDbConnector& mDbConnector; |
135 LogsDbConnector& mDbConnector; |
133 QContact mContact; |
136 QContact mContact; |