Diffstat (limited to 'libopie/pim/odatebookaccess.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/pim/odatebookaccess.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie/pim/odatebookaccess.cpp b/libopie/pim/odatebookaccess.cpp index 5f97e7c..08e61ff 100644 --- a/libopie/pim/odatebookaccess.cpp +++ b/libopie/pim/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 | } |