odatebookaccess.h
Go to the documentation of this file.00001 #ifndef OPIE_DATE_BOOK_ACCESS_H 00002 #define OPIE_DATE_BOOK_ACCESS_H 00003 00004 #include "odatebookaccessbackend.h" 00005 #include "opimaccesstemplate.h" 00006 00007 #include "oevent.h" 00008 00018 class ODateBookAccess : public OPimAccessTemplate<OEvent> { 00019 public: 00020 ODateBookAccess( ODateBookAccessBackend* = 0l, enum Access acc = Random ); 00021 ~ODateBookAccess(); 00022 00023 /* return all events */ 00024 List rawEvents()const; 00025 00026 /* return repeating events */ 00027 List rawRepeats()const; 00028 00029 /* return non repeating events */ 00030 List nonRepeats()const; 00031 00032 /* return non repeating events (from,to) */ 00033 OEffectiveEvent::ValueList effectiveEvents( const QDate& from, const QDate& to ) const; 00034 OEffectiveEvent::ValueList effectiveEvents( const QDateTime& start ) const; 00035 OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) const; 00036 OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDateTime& start ) const; 00037 00038 private: 00039 ODateBookAccessBackend* m_backEnd; 00040 class Private; 00041 Private* d; 00042 }; 00043 00044 #endif
