42 #ifndef CNTFILTERINTERSECTION_H_ |
42 #ifndef CNTFILTERINTERSECTION_H_ |
43 #define CNTFILTERINTERSECTION_H_ |
43 #define CNTFILTERINTERSECTION_H_ |
44 |
44 |
45 #include "cntabstractcontactfilter.h" |
45 #include "cntabstractcontactfilter.h" |
46 #include "cntsymbiansrvconnection.h" |
46 #include "cntsymbiansrvconnection.h" |
|
47 #include "cntdbinfo.h" |
47 #include "qcontactdetailfilter.h" |
48 #include "qcontactdetailfilter.h" |
48 #include "cntdbinfo.h" |
|
49 |
49 |
50 class CntFilterIntersection : public CntAbstractContactFilter |
50 class CntFilterIntersection : public CntAbstractContactFilter |
51 { |
51 { |
52 |
52 |
53 public: |
53 public: |
55 virtual ~CntFilterIntersection(); |
55 virtual ~CntFilterIntersection(); |
56 QList<QContactLocalId> contacts( |
56 QList<QContactLocalId> contacts( |
57 const QContactFilter &filter, |
57 const QContactFilter &filter, |
58 const QList<QContactSortOrder> &sortOrders, |
58 const QList<QContactSortOrder> &sortOrders, |
59 bool &filterSupported, |
59 bool &filterSupported, |
60 QContactManager::Error &error) ; |
60 QContactManager::Error* error) ; |
61 bool filterSupported(const QContactFilter& filter); |
61 bool filterSupported(const QContactFilter& filter); |
62 |
62 |
63 void getSqlQuery( const QContactIntersectionFilter& filter, |
63 void getSqlQuery( const QContactIntersectionFilter& filter, |
64 QString& tableName, |
64 QString& tableName, |
65 QString& sqlWhereClause , |
65 QString& sqlWhereClause , |
66 QContactManager::Error& error) const; |
66 QContactManager::Error* error) const; |
67 |
67 |
68 void createSelectQuery(const QContactFilter& filter, |
68 void createSelectQuery(const QContactFilter& filter, |
69 QString& selectquery, |
69 QString& selectquery, |
70 QContactManager::Error& error); |
70 QContactManager::Error* error); |
71 |
71 |
72 private: |
72 private: |
73 void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error& error); |
73 void getSelectQueryforFilter(const QContactFilter& filter,QString& sqlSelectQuery,QContactManager::Error* error); |
74 |
74 |
75 protected: |
75 protected: |
76 CContactDatabase& m_contactdatabase; |
76 CContactDatabase& m_contactdatabase; |
77 CntSymbianSrvConnection &m_srvConnection; |
77 CntSymbianSrvConnection &m_srvConnection; |
78 CntDbInfo& m_dbInfo; |
78 CntDbInfo& m_dbInfo; |
79 }; |
79 }; |