author | zecke <zecke> | 2004-11-18 21:49:23 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-18 21:49:23 (UTC) |
commit | 1e7f8f22fc10e3ed85b6563332ddc348c95792d0 (patch) (unidiff) | |
tree | 59498ba1d4a7dbff05228c09bebcf0c849e916be /libopie2/opiepim/backend/otodoaccessvcal.h | |
parent | 41fa1c196965f17f9748f835d90c307b7e594883 (diff) | |
download | opie-1e7f8f22fc10e3ed85b6563332ddc348c95792d0.zip opie-1e7f8f22fc10e3ed85b6563332ddc348c95792d0.tar.gz opie-1e7f8f22fc10e3ed85b6563332ddc348c95792d0.tar.bz2 |
Backend Changes:
Each Backend can:
-Sort and Filter a set of Records/AllRecords (which can be filtered again)
-QueryByExample by every Backend
-Occurrences for a period of time and a QDateTime
-More common implementation
-OPimBackendOccurrence with common splitting to OPimOccurrence
Diffstat (limited to 'libopie2/opiepim/backend/otodoaccessvcal.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/otodoaccessvcal.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libopie2/opiepim/backend/otodoaccessvcal.h b/libopie2/opiepim/backend/otodoaccessvcal.h index 1e106d3..05dd76b 100644 --- a/libopie2/opiepim/backend/otodoaccessvcal.h +++ b/libopie2/opiepim/backend/otodoaccessvcal.h | |||
@@ -22,51 +22,45 @@ | |||
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #ifndef OPIE_OTODO_ACCESS_VCAL_H | 29 | #ifndef OPIE_OTODO_ACCESS_VCAL_H |
30 | #define OPIE_OTODO_ACCESS_VCAL_H | 30 | #define OPIE_OTODO_ACCESS_VCAL_H |
31 | 31 | ||
32 | #include <opie2/otodoaccessbackend.h> | 32 | #include <opie2/otodoaccessbackend.h> |
33 | 33 | ||
34 | namespace Opie { | 34 | namespace Opie { |
35 | 35 | ||
36 | class OPimTodoAccessVCal : public OPimTodoAccessBackend { | 36 | class OPimTodoAccessVCal : public OPimTodoAccessBackend { |
37 | public: | 37 | public: |
38 | OPimTodoAccessVCal(const QString& ); | 38 | OPimTodoAccessVCal(const QString& ); |
39 | ~OPimTodoAccessVCal(); | 39 | ~OPimTodoAccessVCal(); |
40 | 40 | ||
41 | bool load(); | 41 | bool load(); |
42 | bool reload(); | 42 | bool reload(); |
43 | bool save(); | 43 | bool save(); |
44 | 44 | ||
45 | QArray<int> allRecords()const; | 45 | QArray<int> allRecords()const; |
46 | QArray<int> matchRegexp(const QRegExp &r) const; | ||
47 | QArray<int> queryByExample( const OPimTodo& t, int sort, const QDateTime& d = QDateTime() ); | ||
48 | QArray<int> effectiveToDos( const QDate& start, | 46 | QArray<int> effectiveToDos( const QDate& start, |
49 | const QDate& end, | 47 | const QDate& end, |
50 | bool includeNoDates ); | 48 | bool includeNoDates )const; |
51 | QArray<int> overDue(); | 49 | QArray<int> overDue()const; |
52 | QArray<int> sorted( bool asc, int sortOrder, int sortFilter, | ||
53 | int cat ); | ||
54 | OPimTodo find(int uid)const; | 50 | OPimTodo find(int uid)const; |
55 | void clear(); | 51 | void clear(); |
56 | bool add( const OPimTodo& ); | 52 | bool add( const OPimTodo& ); |
57 | bool remove( int uid ); | 53 | bool remove( int uid ); |
58 | bool replace( const OPimTodo& ); | 54 | bool replace( const OPimTodo& ); |
59 | 55 | ||
60 | void removeAllCompleted(); | 56 | void removeAllCompleted(); |
61 | virtual QBitArray supports()const; | ||
62 | 57 | ||
63 | private: | 58 | private: |
64 | static QBitArray sup(); | ||
65 | bool m_dirty : 1; | 59 | bool m_dirty : 1; |
66 | QString m_file; | 60 | QString m_file; |
67 | QMap<int, OPimTodo> m_map; | 61 | QMap<int, OPimTodo> m_map; |
68 | }; | 62 | }; |
69 | 63 | ||
70 | } | 64 | } |
71 | 65 | ||
72 | #endif | 66 | #endif |