00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef OPIE_DATE_BOOK_ACCESS_H
00030 #define OPIE_DATE_BOOK_ACCESS_H
00031
00032 #include "odatebookaccessbackend.h"
00033 #include "opimaccesstemplate.h"
00034
00035 #include <opie2/opimevent.h>
00036
00037 namespace Opie {
00047 class ODateBookAccess : public OPimAccessTemplate<OPimEvent> {
00048 public:
00053 enum SortFilter {
00054
00055 };
00056
00061 enum SortOrder {
00062 SortDescription = SortCustom,
00063 SortLocation,
00064 SortNote,
00065 SortStartTime,
00066 SortEndTime,
00067 SortStartDate,
00068 SortEndDate,
00069 SortStartDateTime,
00070 SortEndDateTime,
00071 SortAlarmDateTime,
00072 };
00073
00074 ODateBookAccess( ODateBookAccessBackend* = 0l, enum Access acc = Random );
00075 ~ODateBookAccess();
00076
00077
00078 List rawRepeats()const;
00079
00080
00081 List nonRepeats()const;
00082
00083
00084 OPimOccurrence::List effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) const;
00085 OPimOccurrence::List effectiveNonRepeatingEvents( const QDateTime& start ) const;
00086
00090 int rtti() const;
00091
00092
00093 private:
00094 ODateBookAccessBackend* m_backEnd;
00095 class Private;
00096 Private* d;
00097 };
00098
00099 }
00100
00101 #endif