author | zecke <zecke> | 2003-02-22 22:59:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-22 22:59:37 (UTC) |
commit | 47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c (patch) (unidiff) | |
tree | 034af2ca8bb5ee3e0b751739f9f9a9fbcc241530 /core/pim/datebook2/bookmanager.h | |
parent | 00c146960fa7fd05dc56fac2a24b3d7968a4a772 (diff) | |
download | opie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.zip opie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.tar.gz opie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.tar.bz2 |
import the new layout/design of datebook
sorry this was not put into a branch
and once its done it'll replace datebook and be put
into that subdir.
but currently I want both versions available so I can test...
So by design it'll feature
Showing BirthDays
Showing Due and OVerDue Todos
Better AllDay handling
Pinning Events to TimeZones
Exceptions to Recurrence
Diffstat (limited to 'core/pim/datebook2/bookmanager.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook2/bookmanager.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/core/pim/datebook2/bookmanager.h b/core/pim/datebook2/bookmanager.h new file mode 100644 index 0000000..44ad8ed --- a/dev/null +++ b/core/pim/datebook2/bookmanager.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef OPIE_DATE_BOOK_MANAGER_H | ||
2 | #define OPIE_DATE_BOOK_MANAGER_H | ||
3 | |||
4 | #include <qlist.h> | ||
5 | |||
6 | #include <opie/opimrecord.h> | ||
7 | #include <opie/odatebookaccess.h> | ||
8 | |||
9 | namespace Datebook { | ||
10 | /** | ||
11 | * book manager is responsible for managing the | ||
12 | * access | ||
13 | * All access to the underlying API will be done | ||
14 | * through this class | ||
15 | */ | ||
16 | class BookManager { | ||
17 | public: | ||
18 | BookManager(); | ||
19 | ~BookManager(); | ||
20 | |||
21 | bool isLoaded()const; | ||
22 | bool load(); | ||
23 | bool save(); | ||
24 | |||
25 | OEvent event( int uid ); | ||
26 | OEffectiveEvent::ValueList list( const QDate& from, | ||
27 | const QDate& to ); | ||
28 | ODateBookAccess::List allRecords()const; | ||
29 | |||
30 | void add( const OEvent& ); | ||
31 | void update( const OEvent& ); | ||
32 | void remove( int uid ); | ||
33 | void remove( const QArray<int>& ); | ||
34 | |||
35 | QPtrList<OPimRecord> records( const QDate& from, | ||
36 | const QDate& to ); | ||
37 | }; | ||
38 | } | ||
39 | |||
40 | #endif | ||