summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/backend/otodoaccesssql.h
authorzecke <zecke>2002-10-10 20:16:15 (UTC)
committer zecke <zecke>2002-10-10 20:16:15 (UTC)
commit48b06312289a90ad38278d3adb0bce5e9e0bd67e (patch) (unidiff)
treee5123b76d501eeb669ac6b43b8da746eae36e638 /libopie2/opiepim/backend/otodoaccesssql.h
parentc90676c42c7be606a9fc690278b67909ba6a9c99 (diff)
downloadopie-48b06312289a90ad38278d3adb0bce5e9e0bd67e.zip
opie-48b06312289a90ad38278d3adb0bce5e9e0bd67e.tar.gz
opie-48b06312289a90ad38278d3adb0bce5e9e0bd67e.tar.bz2
Implement read ahead on the XML resource...
Scrolling is now noticeable faster with 10.000 items but not as fast the XML backend... OPimCache can be tuned and Query->OTodo too
Diffstat (limited to 'libopie2/opiepim/backend/otodoaccesssql.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/otodoaccesssql.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/otodoaccesssql.h b/libopie2/opiepim/backend/otodoaccesssql.h
index 6c5f50a..c1aa2ed 100644
--- a/libopie2/opiepim/backend/otodoaccesssql.h
+++ b/libopie2/opiepim/backend/otodoaccesssql.h
@@ -7,6 +7,7 @@
7 7
8class OSQLDriver; 8class OSQLDriver;
9class OSQLResult; 9class OSQLResult;
10class OSQLResultItem;
10class OTodoAccessBackendSQL : public OTodoAccessBackend { 11class OTodoAccessBackendSQL : public OTodoAccessBackend {
11public: 12public:
12 OTodoAccessBackendSQL( const QString& file ); 13 OTodoAccessBackendSQL( const QString& file );
@@ -19,6 +20,7 @@ public:
19 20
20 QArray<int> queryByExample( const OTodo& t, int sort ); 21 QArray<int> queryByExample( const OTodo& t, int sort );
21 OTodo find(int uid)const; 22 OTodo find(int uid)const;
23 OTodo find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const;
22 void clear(); 24 void clear();
23 bool add( const OTodo& t ); 25 bool add( const OTodo& t );
24 bool remove( int uid ); 26 bool remove( int uid );
@@ -34,6 +36,7 @@ private:
34 void fillDict(); 36 void fillDict();
35 inline bool date( QDate& date, const QString& )const; 37 inline bool date( QDate& date, const QString& )const;
36 inline OTodo todo( const OSQLResult& )const; 38 inline OTodo todo( const OSQLResult& )const;
39 inline OTodo todo( OSQLResultItem& )const;
37 inline QArray<int> uids( const OSQLResult& )const; 40 inline QArray<int> uids( const OSQLResult& )const;
38 OTodo todo( int uid )const; 41 OTodo todo( int uid )const;
39 42