author | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
commit | ea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (unidiff) | |
tree | f2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /libopie/pim/otodoaccesssql.h | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
-rw-r--r-- | libopie/pim/otodoaccesssql.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/libopie/pim/otodoaccesssql.h b/libopie/pim/otodoaccesssql.h deleted file mode 100644 index 72214de..0000000 --- a/libopie/pim/otodoaccesssql.h +++ b/dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | #ifndef OPIE_PIM_ACCESS_SQL_H | ||
2 | #define OPIE_PIM_ACCESS_SQL_H | ||
3 | |||
4 | #include <qasciidict.h> | ||
5 | |||
6 | #include "otodoaccessbackend.h" | ||
7 | |||
8 | namespace Opie{ | ||
9 | namespace DB { | ||
10 | class OSQLDriver; | ||
11 | class OSQLResult; | ||
12 | class OSQLResultItem; | ||
13 | } | ||
14 | } | ||
15 | |||
16 | class OTodoAccessBackendSQL : public OTodoAccessBackend { | ||
17 | public: | ||
18 | OTodoAccessBackendSQL( const QString& file ); | ||
19 | ~OTodoAccessBackendSQL(); | ||
20 | |||
21 | bool load(); | ||
22 | bool reload(); | ||
23 | bool save(); | ||
24 | QArray<int> allRecords()const; | ||
25 | |||
26 | QArray<int> queryByExample( const OTodo& t, int settings, const QDateTime& d = QDateTime() ); | ||
27 | OTodo find(int uid)const; | ||
28 | OTodo find(int uid, const QArray<int>&, uint cur, Frontend::CacheDirection )const; | ||
29 | void clear(); | ||
30 | bool add( const OTodo& t ); | ||
31 | bool remove( int uid ); | ||
32 | bool replace( const OTodo& t ); | ||
33 | |||
34 | QArray<int> overDue(); | ||
35 | QArray<int> effectiveToDos( const QDate& start, | ||
36 | const QDate& end, bool includeNoDates ); | ||
37 | QArray<int> sorted(bool asc, int sortOrder, int sortFilter, int cat ); | ||
38 | |||
39 | QBitArray supports()const; | ||
40 | QArray<int> matchRegexp( const QRegExp &r ) const; | ||
41 | void removeAllCompleted(); | ||
42 | |||
43 | |||
44 | private: | ||
45 | void update()const; | ||
46 | void fillDict(); | ||
47 | inline bool date( QDate& date, const QString& )const; | ||
48 | inline OTodo todo( const Opie::DB::OSQLResult& )const; | ||
49 | inline OTodo todo( Opie::DB::OSQLResultItem& )const; | ||
50 | inline QArray<int> uids( const Opie::DB::OSQLResult& )const; | ||
51 | OTodo todo( int uid )const; | ||
52 | QBitArray sup() const; | ||
53 | |||
54 | QAsciiDict<int> m_dict; | ||
55 | Opie::DB::OSQLDriver* m_driver; | ||
56 | QArray<int> m_uids; | ||
57 | bool m_dirty : 1; | ||
58 | }; | ||
59 | |||
60 | |||
61 | #endif | ||