equal
deleted
inserted
replaced
20 #include <QObject> |
20 #include <QObject> |
21 #include <qtcontacts.h> |
21 #include <qtcontacts.h> |
22 #include <logsexport.h> |
22 #include <logsexport.h> |
23 |
23 |
24 //forward declarations |
24 //forward declarations |
25 class XQServiceRequest; |
25 class XQAiwRequest; |
26 class LogsDbConnector; |
26 class LogsDbConnector; |
27 class LogsEvent; |
27 class LogsEvent; |
28 |
28 |
29 QTM_USE_NAMESPACE |
29 QTM_USE_NAMESPACE |
30 |
30 |
102 |
102 |
103 |
103 |
104 private slots: |
104 private slots: |
105 |
105 |
106 void handleRequestCompleted(const QVariant& result); |
106 void handleRequestCompleted(const QVariant& result); |
107 |
107 void handleError(int,const QString&); |
108 |
108 |
109 private: |
109 private: |
110 |
110 |
111 /** |
111 /** |
112 * Finds contact from phonebook |
112 * Finds contact from phonebook |
118 * Checks whether contact is in phonebook |
118 * Checks whether contact is in phonebook |
119 * @return true if contact is in phonebook |
119 * @return true if contact is in phonebook |
120 */ |
120 */ |
121 bool isContactInPhonebook(); |
121 bool isContactInPhonebook(); |
122 |
122 |
123 bool save(QString message); |
123 bool save(const QString& operation); |
124 |
124 |
125 bool requestFetchService(QString message, |
125 bool requestPhonebookService(const QString& interface, |
126 const QList<QVariant> &arguments, |
126 const QString& operation, |
127 bool sync = false ); |
127 const QList<QVariant>& arguments); |
128 |
128 |
129 |
129 |
130 private: //data |
130 private: //data |
131 |
131 |
132 LogsDbConnector& mDbConnector; |
132 LogsDbConnector& mDbConnector; |
133 QContact mContact; |
133 QContact mContact; |
134 |
134 |
135 XQServiceRequest* mService; |
135 XQAiwRequest* mAiwRequest; |
136 RequestType mCurrentRequest; |
136 RequestType mCurrentRequest; |
137 QString mNumber; |
137 QString mNumber; |
138 unsigned int mContactId; |
138 unsigned int mContactId; |
139 bool mSaveAsOnlineAccount; |
139 bool mSaveAsOnlineAccount; |
140 |
140 |