Diffstat (limited to 'libopie2/opiepim/backend/ocontactaccessbackend_sql.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_sql.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_sql.h b/libopie2/opiepim/backend/ocontactaccessbackend_sql.h index ba122ec..4f81735 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_sql.h +++ b/libopie2/opiepim/backend/ocontactaccessbackend_sql.h | |||
@@ -64,49 +64,50 @@ class OPimContactAccessBackend_SQL : public OPimContactAccessBackend { | |||
64 | 64 | ||
65 | bool save(); | 65 | bool save(); |
66 | 66 | ||
67 | bool load (); | 67 | bool load (); |
68 | 68 | ||
69 | void clear (); | 69 | void clear (); |
70 | 70 | ||
71 | bool wasChangedExternally(); | 71 | bool wasChangedExternally(); |
72 | 72 | ||
73 | QArray<int> allRecords() const; | 73 | QArray<int> allRecords() const; |
74 | 74 | ||
75 | OPimContact find ( int uid ) const; | 75 | OPimContact find ( int uid ) const; |
76 | // FIXME: Add lookahead-cache support ! | 76 | OPimContact find( int uid, const QArray<int>&, uint cur, Frontend::CacheDirection ) const; |
77 | //OPimContact find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const; | ||
78 | 77 | ||
79 | QArray<int> queryByExample ( const OPimContact &query, int settings, | 78 | QArray<int> queryByExample ( const OPimContact &query, int settings, |
80 | const QDateTime& d ); | 79 | const QDateTime& d ); |
81 | 80 | ||
82 | QArray<int> matchRegexp( const QRegExp &r ) const; | 81 | QArray<int> matchRegexp( const QRegExp &r ) const; |
83 | 82 | ||
84 | const uint querySettings(); | 83 | const uint querySettings(); |
85 | 84 | ||
86 | bool hasQuerySettings (uint querySettings) const; | 85 | bool hasQuerySettings (uint querySettings) const; |
87 | 86 | ||
88 | // Currently only asc implemented.. | 87 | // Currently only asc implemented.. |
89 | QArray<int> sorted( bool asc, int , int , int ); | 88 | QArray<int> sorted( bool asc, int , int , int ); |
90 | bool add ( const OPimContact &newcontact ); | 89 | bool add ( const OPimContact &newcontact ); |
91 | 90 | ||
92 | bool replace ( const OPimContact &contact ); | 91 | bool replace ( const OPimContact &contact ); |
93 | 92 | ||
94 | bool remove ( int uid ); | 93 | bool remove ( int uid ); |
95 | bool reload(); | 94 | bool reload(); |
96 | 95 | ||
97 | private: | 96 | private: |
98 | QArray<int> extractUids( Opie::DB::OSQLResult& res ) const; | 97 | QArray<int> extractUids( Opie::DB::OSQLResult& res ) const; |
99 | QMap<int, QString> requestNonCustom( int uid ) const; | 98 | QMap<int, QString> requestNonCustom( int uid ) const; |
100 | QMap<QString, QString> requestCustom( int uid ) const; | 99 | QMap<QString, QString> requestCustom( int uid ) const; |
100 | QMap<int, QString> fillNonCustomMap( const Opie::DB::OSQLResultItem& resultItem ) const; | ||
101 | OPimContact requestContactsAndCache( int uid, const QArray<int>& cachelist ) const; | ||
101 | void update(); | 102 | void update(); |
102 | 103 | ||
103 | protected: | 104 | protected: |
104 | bool m_changed; | 105 | bool m_changed; |
105 | QString m_fileName; | 106 | QString m_fileName; |
106 | QArray<int> m_uids; | 107 | QArray<int> m_uids; |
107 | 108 | ||
108 | Opie::DB::OSQLDriver* m_driver; | 109 | Opie::DB::OSQLDriver* m_driver; |
109 | }; | 110 | }; |
110 | 111 | ||
111 | } | 112 | } |
112 | 113 | ||