42 #ifndef CNTFILTERDETAIL_H |
42 #ifndef CNTFILTERDETAIL_H |
43 #define CNTFILTERDETAIL_H |
43 #define CNTFILTERDETAIL_H |
44 |
44 |
45 #include "cntabstractcontactfilter.h" |
45 #include "cntabstractcontactfilter.h" |
46 #include "cntsymbiansrvconnection.h" |
46 #include "cntsymbiansrvconnection.h" |
47 #include "qcontactdetailfilter.h" |
|
48 #include "cntdbinfo.h" |
47 #include "cntdbinfo.h" |
49 |
48 |
50 #include <qmobilityglobal.h> |
49 #include <qmobilityglobal.h> |
51 |
50 |
52 QTM_USE_NAMESPACE |
51 QTM_USE_NAMESPACE |
58 ~CntFilterDetail(); |
57 ~CntFilterDetail(); |
59 QList<QContactLocalId> contacts( |
58 QList<QContactLocalId> contacts( |
60 const QContactFilter &filter, |
59 const QContactFilter &filter, |
61 const QList<QContactSortOrder> &sortOrders, |
60 const QList<QContactSortOrder> &sortOrders, |
62 bool &filterSupported, |
61 bool &filterSupported, |
63 QContactManager::Error &error); |
62 QContactManager::Error* error); |
64 bool filterSupported(const QContactFilter& filter) ; |
63 bool filterSupported(const QContactFilter& filter) ; |
65 |
64 |
66 //bool isFilterSupported(const QContactFilter& filter) const; |
65 //bool isFilterSupported(const QContactFilter& filter) const; |
67 |
66 |
68 void getTableNameWhereClause( const QContactDetailFilter& filter, |
67 void getTableNameWhereClause( const QContactDetailFilter& filter, |
69 QString& tableName, |
68 QString& tableName, |
70 QString& sqlWhereClause , |
69 QString& sqlWhereClause , |
71 QContactManager::Error& error) const; |
70 QContactManager::Error* error) const; |
72 void createSelectQuery(const QContactFilter& filter, |
71 void createSelectQuery(const QContactFilter& filter, |
73 QString& sqlQuery, |
72 QString& sqlQuery, |
74 QContactManager::Error& error); |
73 QContactManager::Error* error); |
75 private: |
74 private: |
76 |
75 |
77 |
76 |
78 void updateForMatchFlag( const QContactDetailFilter& filter, |
77 void updateForMatchFlag( const QContactDetailFilter& filter, |
79 QString& fieldToUpdate , |
78 QString& fieldToUpdate , |
80 QContactManager::Error& error) const; |
79 QContactManager::Error* error) const; |
81 QList<QContactLocalId> HandlePhonenumberDetailFilter(const QContactFilter& filter); |
80 QList<QContactLocalId> HandlePhonenumberDetailFilter(const QContactFilter& filter); |
82 QList<QContactLocalId> HandlePredictiveSearchFilter(const QContactFilter& filter, |
81 QList<QContactLocalId> HandlePredictiveSearchFilter(const QContactFilter& filter, |
83 QContactManager::Error& error); |
82 QContactManager::Error* error); |
84 |
83 |
85 TInt CntFilterDetail::searchPhoneNumbers( |
84 TInt CntFilterDetail::searchPhoneNumbers( |
86 CContactIdArray*& idArray, |
85 CContactIdArray*& idArray, |
87 const TDesC& phoneNumber, |
86 const TDesC& phoneNumber, |
88 const TInt matchLength); |
87 const TInt matchLength); |