From 47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 22 Feb 2003 22:59:37 +0000 Subject: 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 --- (limited to 'core/pim/datebook2/bookmanager.h') 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 @@ +#ifndef OPIE_DATE_BOOK_MANAGER_H +#define OPIE_DATE_BOOK_MANAGER_H + +#include + +#include +#include + +namespace Datebook { + /** + * book manager is responsible for managing the + * access + * All access to the underlying API will be done + * through this class + */ + class BookManager { + public: + BookManager(); + ~BookManager(); + + bool isLoaded()const; + bool load(); + bool save(); + + OEvent event( int uid ); + OEffectiveEvent::ValueList list( const QDate& from, + const QDate& to ); + ODateBookAccess::List allRecords()const; + + void add( const OEvent& ); + void update( const OEvent& ); + void remove( int uid ); + void remove( const QArray& ); + + QPtrList records( const QDate& from, + const QDate& to ); + }; +} + +#endif -- cgit v0.9.0.2