Diffstat (limited to 'noncore/unsupported/libopie/pim/otodoaccessvcal.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/libopie/pim/otodoaccessvcal.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/pim/otodoaccessvcal.h b/noncore/unsupported/libopie/pim/otodoaccessvcal.h new file mode 100644 index 0000000..2b17147 --- a/dev/null +++ b/noncore/unsupported/libopie/pim/otodoaccessvcal.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef OPIE_OTODO_ACCESS_VCAL_H | ||
2 | #define OPIE_OTODO_ACCESS_VCAL_H | ||
3 | |||
4 | #include "otodoaccessbackend.h" | ||
5 | |||
6 | class OTodoAccessVCal : public OTodoAccessBackend { | ||
7 | public: | ||
8 | OTodoAccessVCal(const QString& ); | ||
9 | ~OTodoAccessVCal(); | ||
10 | |||
11 | bool load(); | ||
12 | bool reload(); | ||
13 | bool save(); | ||
14 | |||
15 | QArray<int> allRecords()const; | ||
16 | QArray<int> matchRegexp(const QRegExp &r) const; | ||
17 | QArray<int> queryByExample( const OTodo& t, int sort, const QDateTime& d = QDateTime() ); | ||
18 | QArray<int> effectiveToDos( const QDate& start, | ||
19 | const QDate& end, | ||
20 | bool includeNoDates ); | ||
21 | QArray<int> overDue(); | ||
22 | QArray<int> sorted( bool asc, int sortOrder, int sortFilter, | ||
23 | int cat ); | ||
24 | OTodo find(int uid)const; | ||
25 | void clear(); | ||
26 | bool add( const OTodo& ); | ||
27 | bool remove( int uid ); | ||
28 | bool replace( const OTodo& ); | ||
29 | |||
30 | void removeAllCompleted(); | ||
31 | virtual QBitArray supports()const; | ||
32 | |||
33 | private: | ||
34 | static QBitArray sup(); | ||
35 | bool m_dirty : 1; | ||
36 | QString m_file; | ||
37 | QMap<int, OTodo> m_map; | ||
38 | }; | ||
39 | |||
40 | #endif | ||