odatebookaccessbackend.h
Go to the documentation of this file.00001 #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_H 00002 #define OPIE_DATE_BOOK_ACCESS_BACKEND_H 00003 00004 #include <qarray.h> 00005 00006 #include "opimaccessbackend.h" 00007 #include "oevent.h" 00008 00014 class ODateBookAccessBackend : public OPimAccessBackend<OEvent> { 00015 public: 00016 typedef int UID; 00017 00021 ODateBookAccessBackend(); 00022 ~ODateBookAccessBackend(); 00023 00029 virtual QArray<UID> rawEvents()const = 0; 00030 00036 virtual QArray<UID> rawRepeats()const = 0; 00037 00043 virtual QArray<UID> nonRepeats() const = 0; 00044 00050 virtual OEvent::ValueList directNonRepeats() = 0; 00051 00055 virtual OEvent::ValueList directRawRepeats() = 0; 00056 00057 /* is implemented by default but you can reimplement it*/ 00063 virtual OEffectiveEvent::ValueList effectiveEvents( const QDate& from, const QDate& to ); 00064 00069 virtual OEffectiveEvent::ValueList effectiveEvents( const QDateTime& start ); 00070 00076 virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDate& from, const QDate& to ); 00077 00082 virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDateTime& start ); 00083 00084 private: 00085 class Private; 00086 Private *d; 00087 00088 }; 00089 00090 #endif
