summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/otodoaccess.cpp5
-rw-r--r--libopie2/opiepim/core/otodoaccess.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/libopie/pim/otodoaccess.cpp b/libopie/pim/otodoaccess.cpp
index 5990841..4468812 100644
--- a/libopie/pim/otodoaccess.cpp
+++ b/libopie/pim/otodoaccess.cpp
@@ -1,26 +1,29 @@
1#include <qdatetime.h> 1#include <qdatetime.h>
2 2
3#include <qpe/alarmserver.h> 3#include <qpe/alarmserver.h>
4 4
5#include "otodoaccesssql.h" 5#include "otodoaccesssql.h"
6#include "otodoaccess.h" 6#include "otodoaccess.h"
7 7#include "obackendfactory.h"
8 8
9OTodoAccess::OTodoAccess( OTodoAccessBackend* end ) 9OTodoAccess::OTodoAccess( OTodoAccessBackend* end )
10 : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end ) 10 : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end )
11{ 11{
12 if (end == 0l ) 12 if (end == 0l )
13 m_todoBackEnd = new OTodoAccessBackendSQL( QString::null); 13 m_todoBackEnd = new OTodoAccessBackendSQL( QString::null);
14 14
15 // if (end == 0l )
16 // m_todoBackEnd = OBackendFactory<OTodoAccessBackend>::Default ("todo", QString::null);
17
15 setBackEnd( m_todoBackEnd ); 18 setBackEnd( m_todoBackEnd );
16} 19}
17OTodoAccess::~OTodoAccess() { 20OTodoAccess::~OTodoAccess() {
18// qWarning("~OTodoAccess"); 21// qWarning("~OTodoAccess");
19} 22}
20void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) { 23void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) {
21 QValueList<OTodo>::ConstIterator it; 24 QValueList<OTodo>::ConstIterator it;
22 for ( it = list.begin(); it != list.end(); ++it ) { 25 for ( it = list.begin(); it != list.end(); ++it ) {
23 replace( (*it) ); 26 replace( (*it) );
24 } 27 }
25} 28}
26OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start, 29OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,
diff --git a/libopie2/opiepim/core/otodoaccess.cpp b/libopie2/opiepim/core/otodoaccess.cpp
index 5990841..4468812 100644
--- a/libopie2/opiepim/core/otodoaccess.cpp
+++ b/libopie2/opiepim/core/otodoaccess.cpp
@@ -1,26 +1,29 @@
1#include <qdatetime.h> 1#include <qdatetime.h>
2 2
3#include <qpe/alarmserver.h> 3#include <qpe/alarmserver.h>
4 4
5#include "otodoaccesssql.h" 5#include "otodoaccesssql.h"
6#include "otodoaccess.h" 6#include "otodoaccess.h"
7 7#include "obackendfactory.h"
8 8
9OTodoAccess::OTodoAccess( OTodoAccessBackend* end ) 9OTodoAccess::OTodoAccess( OTodoAccessBackend* end )
10 : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end ) 10 : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end )
11{ 11{
12 if (end == 0l ) 12 if (end == 0l )
13 m_todoBackEnd = new OTodoAccessBackendSQL( QString::null); 13 m_todoBackEnd = new OTodoAccessBackendSQL( QString::null);
14 14
15 // if (end == 0l )
16 // m_todoBackEnd = OBackendFactory<OTodoAccessBackend>::Default ("todo", QString::null);
17
15 setBackEnd( m_todoBackEnd ); 18 setBackEnd( m_todoBackEnd );
16} 19}
17OTodoAccess::~OTodoAccess() { 20OTodoAccess::~OTodoAccess() {
18// qWarning("~OTodoAccess"); 21// qWarning("~OTodoAccess");
19} 22}
20void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) { 23void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) {
21 QValueList<OTodo>::ConstIterator it; 24 QValueList<OTodo>::ConstIterator it;
22 for ( it = list.begin(); it != list.end(); ++it ) { 25 for ( it = list.begin(); it != list.end(); ++it ) {
23 replace( (*it) ); 26 replace( (*it) );
24 } 27 }
25} 28}
26OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start, 29OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start,