equal
deleted
inserted
replaced
85 { |
85 { |
86 Q_OBJECT |
86 Q_OBJECT |
87 |
87 |
88 public: |
88 public: |
89 CntSymbianEngine(const QMap<QString, QString>& parameters, QContactManager::Error* error); |
89 CntSymbianEngine(const QMap<QString, QString>& parameters, QContactManager::Error* error); |
90 CntSymbianEngine(const CntSymbianEngine& other); |
|
91 ~CntSymbianEngine(); |
90 ~CntSymbianEngine(); |
92 |
91 |
93 /* URI reporting */ |
92 /* URI reporting */ |
94 QString managerName() const; |
93 QString managerName() const; |
95 |
94 |
96 /* XXX TODO - implement these correctly */ |
95 /* XXX TODO - implement these correctly */ |
97 int managerVersion() const { return 1;} |
96 int managerVersion() const { return 1;} |
|
97 QContact compatibleContact(const QContact& contact, QContactManager::Error* error) const {return QContactManagerEngine::compatibleContact(contact, error);} |
98 |
98 |
99 /* Functions that are optional in the base API */ |
99 /* Functions that are optional in the base API */ |
100 bool saveRelationship(QContactRelationship* relationship, QContactManager::Error* error); |
100 bool saveRelationship(QContactRelationship* relationship, QContactManager::Error* error); |
101 bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error); |
101 bool removeRelationship(const QContactRelationship& relationship, QContactManager::Error* error); |
102 bool saveContact(QContact* contact, QContactManager::Error* error); |
102 bool saveContact(QContact* contact, QContactManager::Error* error); |
165 private: |
165 private: |
166 CntSymbianDatabase *m_dataBase; |
166 CntSymbianDatabase *m_dataBase; |
167 QString m_managerUri; |
167 QString m_managerUri; |
168 CntTransformContact *m_transformContact; |
168 CntTransformContact *m_transformContact; |
169 CntAbstractContactFilter *m_contactFilter; |
169 CntAbstractContactFilter *m_contactFilter; |
|
170 #ifndef SYMBIAN_BACKEND_USE_SQLITE |
170 CntAbstractContactSorter *m_contactSorter; |
171 CntAbstractContactSorter *m_contactSorter; |
|
172 #endif |
171 CntRelationship *m_relationship; |
173 CntRelationship *m_relationship; |
172 CntDisplayLabel *m_displayLabel; |
174 CntDisplayLabel *m_displayLabel; |
173 |
175 |
174 QQueue<QContactAbstractRequest*> m_asynchronousOperations; // async requests to be performed. |
176 QQueue<QContactAbstractRequest*> m_asynchronousOperations; // async requests to be performed. |
175 #ifdef PBK_UNIT_TEST |
177 #ifdef PBK_UNIT_TEST |