-rw-r--r-- | libopie2/opiepim/core/odatebookaccess.cpp | 5 | ||||
-rw-r--r-- | libopie2/opiepim/core/odatebookaccess.h | 4 | ||||
-rw-r--r-- | libopie2/opiepim/core/opimnotify.h | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/libopie2/opiepim/core/odatebookaccess.cpp b/libopie2/opiepim/core/odatebookaccess.cpp index 5f97e7c..08e61ff 100644 --- a/libopie2/opiepim/core/odatebookaccess.cpp +++ b/libopie2/opiepim/core/odatebookaccess.cpp | |||
@@ -5,12 +5,13 @@ ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac ) | |||
5 | : OPimAccessTemplate<OEvent>( back ) | 5 | : OPimAccessTemplate<OEvent>( back ) |
6 | { | 6 | { |
7 | if (!back ) | 7 | if (!back ) |
8 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); | 8 | back = OBackendFactory<ODateBookAccessBackend>::Default("datebook", QString::null ); |
9 | 9 | ||
10 | m_backEnd = back; | 10 | m_backEnd = back; |
11 | setBackEnd( m_backEnd ); | ||
11 | } | 12 | } |
12 | ODateBookAccess::~ODateBookAccess() { | 13 | ODateBookAccess::~ODateBookAccess() { |
13 | } | 14 | } |
14 | ODateBookAccess::List ODateBookAccess::rawEvents()const { | 15 | ODateBookAccess::List ODateBookAccess::rawEvents()const { |
15 | QArray<int> ints = m_backEnd->rawEvents(); | 16 | QArray<int> ints = m_backEnd->rawEvents(); |
16 | 17 | ||
@@ -26,12 +27,12 @@ ODateBookAccess::List ODateBookAccess::rawRepeats()const { | |||
26 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { | 27 | ODateBookAccess::List ODateBookAccess::nonRepeats()const { |
27 | QArray<int> ints = m_backEnd->nonRepeats(); | 28 | QArray<int> ints = m_backEnd->nonRepeats(); |
28 | 29 | ||
29 | List lis( ints, this ); | 30 | List lis( ints, this ); |
30 | return lis; | 31 | return lis; |
31 | } | 32 | } |
32 | OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDate& from, const QDate& to ) { | 33 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) { |
33 | return m_backEnd->effecticeEvents( from, to ); | 34 | return m_backEnd->effecticeEvents( from, to ); |
34 | } | 35 | } |
35 | OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDateTime& start ) { | 36 | OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) { |
36 | return m_backEnd->effecticeEvents( start ); | 37 | return m_backEnd->effecticeEvents( start ); |
37 | } | 38 | } |
diff --git a/libopie2/opiepim/core/odatebookaccess.h b/libopie2/opiepim/core/odatebookaccess.h index 3f2c728..7047039 100644 --- a/libopie2/opiepim/core/odatebookaccess.h +++ b/libopie2/opiepim/core/odatebookaccess.h | |||
@@ -17,14 +17,14 @@ public: | |||
17 | /** return repeating events */ | 17 | /** return repeating events */ |
18 | List rawRepeats()const; | 18 | List rawRepeats()const; |
19 | 19 | ||
20 | /** return non repeating events */ | 20 | /** return non repeating events */ |
21 | List nonRepeats()const; | 21 | List nonRepeats()const; |
22 | 22 | ||
23 | OEffectiveEvent::ValueList effecticeEvents( const QDate& from, const QDate& to ); | 23 | OEffectiveEvent::ValueList effectiveEvents( const QDate& from, const QDate& to ); |
24 | OEffectiveEvent::ValueList effecticeEvents( const QDateTime& start ); | 24 | OEffectiveEvent::ValueList effectiveEvents( const QDateTime& start ); |
25 | 25 | ||
26 | private: | 26 | private: |
27 | ODateBookAccessBackend* m_backEnd; | 27 | ODateBookAccessBackend* m_backEnd; |
28 | class Private; | 28 | class Private; |
29 | Private* d; | 29 | Private* d; |
30 | }; | 30 | }; |
diff --git a/libopie2/opiepim/core/opimnotify.h b/libopie2/opiepim/core/opimnotify.h index 3501948..b0de000 100644 --- a/libopie2/opiepim/core/opimnotify.h +++ b/libopie2/opiepim/core/opimnotify.h | |||
@@ -69,13 +69,13 @@ private: | |||
69 | * An alarm is a sound/mail/buzzer played/send | 69 | * An alarm is a sound/mail/buzzer played/send |
70 | * at a given time to inform about | 70 | * at a given time to inform about |
71 | * an Event | 71 | * an Event |
72 | */ | 72 | */ |
73 | class OPimAlarm : public OPimNotify { | 73 | class OPimAlarm : public OPimNotify { |
74 | public: | 74 | public: |
75 | enum Sound{Loud=0, Silent, Custom }; | 75 | enum Sound{Loud=1, Silent=0, Custom=2 }; |
76 | OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); | 76 | OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); |
77 | OPimAlarm( const OPimAlarm& ); | 77 | OPimAlarm( const OPimAlarm& ); |
78 | ~OPimAlarm(); | 78 | ~OPimAlarm(); |
79 | 79 | ||
80 | OPimAlarm &operator=( const OPimAlarm& ); | 80 | OPimAlarm &operator=( const OPimAlarm& ); |
81 | bool operator==( const OPimAlarm& ); | 81 | bool operator==( const OPimAlarm& ); |