67 |
67 |
68 /* from CntAbstractContactFilter */ |
68 /* from CntAbstractContactFilter */ |
69 QList<QContactLocalId> contacts(const QContactFilter& filter, |
69 QList<QContactLocalId> contacts(const QContactFilter& filter, |
70 const QList<QContactSortOrder>& sortOrders, |
70 const QList<QContactSortOrder>& sortOrders, |
71 bool &filterSupported, |
71 bool &filterSupported, |
72 QContactManager::Error& error); |
72 QContactManager::Error* error); |
73 bool filterSupported(const QContactFilter& filter); |
73 bool filterSupported(const QContactFilter& filter); |
74 |
74 |
75 private: |
75 private: |
76 FilterSupport filterSupportLevel(const QContactFilter& filter); |
76 FilterSupport filterSupportLevel(const QContactFilter& filter); |
77 QList<QContactLocalId> filterContacts(const QContactFilter& filter, |
77 QList<QContactLocalId> filterContacts(const QContactFilter& filter, |
78 QContactManager::Error& error); |
78 QContactManager::Error* error); |
79 void transformDetailFilterL(const QContactDetailFilter& detailFilter, CContactItemFieldDef*& fieldDef); |
79 void transformDetailFilterL(const QContactDetailFilter& detailFilter, CContactItemFieldDef*& fieldDef); |
80 TInt findContacts( |
80 TInt findContacts( |
81 CContactIdArray*& idArray, |
81 CContactIdArray*& idArray, |
82 const CContactItemFieldDef& fieldDef, |
82 const CContactItemFieldDef& fieldDef, |
83 const TDesC& text) const; |
83 const TDesC& text) const; |
92 void getMatchLengthL(TInt& matchLength); |
92 void getMatchLengthL(TInt& matchLength); |
93 CContactDatabase &m_contactDatabase; |
93 CContactDatabase &m_contactDatabase; |
94 CntAbstractContactSorter *m_contactSorter; |
94 CntAbstractContactSorter *m_contactSorter; |
95 CntTransformContact *m_transformContact; |
95 CntTransformContact *m_transformContact; |
96 #ifdef PBK_UNIT_TEST |
96 #ifdef PBK_UNIT_TEST |
97 friend class ut_cntfilteringdbms; |
97 friend class tst_cntfilteringdbms; |
98 #endif |
98 #endif |
99 }; |
99 }; |
100 |
100 |
101 #endif /*SYMBIAN_BACKEND_USE_SQLITE*/ |
101 #endif /*SYMBIAN_BACKEND_USE_SQLITE*/ |
102 |
102 |