From 46f47c0a1e542a8b4222f3ced8f3304534c7509d Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 21 Feb 2003 23:31:52 +0000 Subject: 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 --- (limited to 'libopie2/opiepim/core') 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 ) back = OBackendFactory::Default("datebook", QString::null ); m_backEnd = back; + setBackEnd( m_backEnd ); } ODateBookAccess::~ODateBookAccess() { } @@ -29,9 +30,9 @@ ODateBookAccess::List ODateBookAccess::nonRepeats()const { List lis( ints, this ); return lis; } -OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDate& from, const QDate& to ) { +OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDate& from, const QDate& to ) { return m_backEnd->effecticeEvents( from, to ); } -OEffectiveEvent::ValueList ODateBookAccess::effecticeEvents( const QDateTime& start ) { +OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents( const QDateTime& start ) { return m_backEnd->effecticeEvents( start ); } 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: /** return non repeating events */ List nonRepeats()const; - OEffectiveEvent::ValueList effecticeEvents( const QDate& from, const QDate& to ); - OEffectiveEvent::ValueList effecticeEvents( const QDateTime& start ); + OEffectiveEvent::ValueList effectiveEvents( const QDate& from, const QDate& to ); + OEffectiveEvent::ValueList effectiveEvents( const QDateTime& start ); private: 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: */ class OPimAlarm : public OPimNotify { public: - enum Sound{Loud=0, Silent, Custom }; + enum Sound{Loud=1, Silent=0, Custom=2 }; OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); OPimAlarm( const OPimAlarm& ); ~OPimAlarm(); -- cgit v0.9.0.2