summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core
authorzecke <zecke>2003-02-21 23:31:52 (UTC)
committer zecke <zecke>2003-02-21 23:31:52 (UTC)
commit46f47c0a1e542a8b4222f3ced8f3304534c7509d (patch) (unidiff)
tree82dc97a07bae77387987711c0c21697691955937 /libopie2/opiepim/core
parenta7448ec87d97a0128618e83ad7526bd884ef8853 (diff)
downloadopie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.zip
opie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.tar.gz
opie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.tar.bz2
Add XML datebookresource
-clean up todoaccessxml header -implement some more stuff in the oeven tester -extend DefaultFactory to not crash and to use datebook -reading of OEvents is working nicely.. saving will be added tomorrow -fix spelling in ODateBookAcces
Diffstat (limited to 'libopie2/opiepim/core') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/core/odatebookaccess.cpp5
-rw-r--r--libopie2/opiepim/core/odatebookaccess.h4
-rw-r--r--libopie2/opiepim/core/opimnotify.h2
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
@@ -8,6 +8,7 @@ ODateBookAccess::ODateBookAccess( ODateBookAccessBackend* back, enum Access ac )
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}
12ODateBookAccess::~ODateBookAccess() { 13ODateBookAccess::~ODateBookAccess() {
13} 14}
@@ -29,9 +30,9 @@ ODateBookAccess::List ODateBookAccess::nonRepeats()const {
29 List lis( ints, this ); 30 List lis( ints, this );
30 return lis; 31 return lis;
31} 32}
32OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDate& from, const QDate& to ) { 33OEffectiveEvent::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}
35OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDateTime& start ) { 36OEffectiveEvent::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
@@ -20,8 +20,8 @@ public:
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
26private: 26private:
27 ODateBookAccessBackend* m_backEnd; 27 ODateBookAccessBackend* m_backEnd;
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
@@ -72,7 +72,7 @@ private:
72 */ 72 */
73class OPimAlarm : public OPimNotify { 73class OPimAlarm : public OPimNotify {
74public: 74public:
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();