Diffstat (limited to 'libopie2/opiepim/core/otodoaccess.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/otodoaccess.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libopie2/opiepim/core/otodoaccess.cpp b/libopie2/opiepim/core/otodoaccess.cpp index 2a3695d..83750d5 100644 --- a/libopie2/opiepim/core/otodoaccess.cpp +++ b/libopie2/opiepim/core/otodoaccess.cpp | |||
@@ -26,68 +26,68 @@ | |||
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
30 | 30 | ||
31 | #include <qpe/alarmserver.h> | 31 | #include <qpe/alarmserver.h> |
32 | 32 | ||
33 | // #include "otodoaccesssql.h" | 33 | // #include "otodoaccesssql.h" |
34 | #include <opie2/otodoaccess.h> | 34 | #include <opie2/otodoaccess.h> |
35 | #include <opie2/obackendfactory.h> | 35 | #include <opie2/obackendfactory.h> |
36 | 36 | ||
37 | namespace Opie { | 37 | namespace Opie { |
38 | OTodoAccess::OTodoAccess( OTodoAccessBackend* end, enum Access ) | 38 | OPimTodoAccess::OPimTodoAccess( OPimTodoAccessBackend* end, enum Access ) |
39 | : QObject(), OPimAccessTemplate<OTodo>( end ), m_todoBackEnd( end ) | 39 | : QObject(), OPimAccessTemplate<OPimTodo>( end ), m_todoBackEnd( end ) |
40 | { | 40 | { |
41 | // if (end == 0l ) | 41 | // if (end == 0l ) |
42 | // m_todoBackEnd = new OTodoAccessBackendSQL( QString::null); | 42 | // m_todoBackEnd = new OPimTodoAccessBackendSQL( QString::null); |
43 | 43 | ||
44 | // Zecke: Du musst hier noch fr das XML-Backend einen Appnamen bergeben ! | 44 | // Zecke: Du musst hier noch fr das XML-Backend einen Appnamen bergeben ! |
45 | if (end == 0l ) | 45 | if (end == 0l ) |
46 | m_todoBackEnd = OBackendFactory<OTodoAccessBackend>::Default ("todo", QString::null); | 46 | m_todoBackEnd = OBackendFactory<OPimTodoAccessBackend>::Default ("todo", QString::null); |
47 | 47 | ||
48 | setBackEnd( m_todoBackEnd ); | 48 | setBackEnd( m_todoBackEnd ); |
49 | } | 49 | } |
50 | OTodoAccess::~OTodoAccess() { | 50 | OPimTodoAccess::~OPimTodoAccess() { |
51 | // qWarning("~OTodoAccess"); | 51 | // qWarning("~OPimTodoAccess"); |
52 | } | 52 | } |
53 | void OTodoAccess::mergeWith( const QValueList<OTodo>& list ) { | 53 | void OPimTodoAccess::mergeWith( const QValueList<OPimTodo>& list ) { |
54 | QValueList<OTodo>::ConstIterator it; | 54 | QValueList<OPimTodo>::ConstIterator it; |
55 | for ( it = list.begin(); it != list.end(); ++it ) { | 55 | for ( it = list.begin(); it != list.end(); ++it ) { |
56 | replace( (*it) ); | 56 | replace( (*it) ); |
57 | } | 57 | } |
58 | } | 58 | } |
59 | OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start, | 59 | OPimTodoAccess::List OPimTodoAccess::effectiveToDos( const QDate& start, |
60 | const QDate& end, | 60 | const QDate& end, |
61 | bool includeNoDates ) { | 61 | bool includeNoDates ) { |
62 | QArray<int> ints = m_todoBackEnd->effectiveToDos( start, end, includeNoDates ); | 62 | QArray<int> ints = m_todoBackEnd->effectiveToDos( start, end, includeNoDates ); |
63 | 63 | ||
64 | List lis( ints, this ); | 64 | List lis( ints, this ); |
65 | return lis; | 65 | return lis; |
66 | } | 66 | } |
67 | OTodoAccess::List OTodoAccess::effectiveToDos( const QDate& start, | 67 | OPimTodoAccess::List OPimTodoAccess::effectiveToDos( const QDate& start, |
68 | bool includeNoDates ) { | 68 | bool includeNoDates ) { |
69 | return effectiveToDos( start, QDate::currentDate(), | 69 | return effectiveToDos( start, QDate::currentDate(), |
70 | includeNoDates ); | 70 | includeNoDates ); |
71 | } | 71 | } |
72 | OTodoAccess::List OTodoAccess::overDue() { | 72 | OPimTodoAccess::List OPimTodoAccess::overDue() { |
73 | List lis( m_todoBackEnd->overDue(), this ); | 73 | List lis( m_todoBackEnd->overDue(), this ); |
74 | return lis; | 74 | return lis; |
75 | } | 75 | } |
76 | /* sort order */ | 76 | /* sort order */ |
77 | OTodoAccess::List OTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) { | 77 | OPimTodoAccess::List OPimTodoAccess::sorted( bool ascending, int sort,int filter, int cat ) { |
78 | QArray<int> ints = m_todoBackEnd->sorted( ascending, sort, | 78 | QArray<int> ints = m_todoBackEnd->sorted( ascending, sort, |
79 | filter, cat ); | 79 | filter, cat ); |
80 | OTodoAccess::List list( ints, this ); | 80 | OPimTodoAccess::List list( ints, this ); |
81 | return list; | 81 | return list; |
82 | } | 82 | } |
83 | void OTodoAccess::removeAllCompleted() { | 83 | void OPimTodoAccess::removeAllCompleted() { |
84 | m_todoBackEnd->removeAllCompleted(); | 84 | m_todoBackEnd->removeAllCompleted(); |
85 | } | 85 | } |
86 | QBitArray OTodoAccess::backendSupport( const QString& ) const{ | 86 | QBitArray OPimTodoAccess::backendSupport( const QString& ) const{ |
87 | return m_todoBackEnd->supports(); | 87 | return m_todoBackEnd->supports(); |
88 | } | 88 | } |
89 | bool OTodoAccess::backendSupports( int attr, const QString& ar) const{ | 89 | bool OPimTodoAccess::backendSupports( int attr, const QString& ar) const{ |
90 | return backendSupport(ar).testBit( attr ); | 90 | return backendSupport(ar).testBit( attr ); |
91 | } | 91 | } |
92 | 92 | ||
93 | } | 93 | } |