Diffstat (limited to 'libopie2/opiepim/backend/otodoaccessxml.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/otodoaccessxml.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp index c3416cb..22b2469 100644 --- a/libopie2/opiepim/backend/otodoaccessxml.cpp +++ b/libopie2/opiepim/backend/otodoaccessxml.cpp | |||
@@ -1,43 +1,41 @@ | |||
1 | #include <errno.h> | 1 | #include <errno.h> |
2 | #include <fcntl.h> | 2 | #include <fcntl.h> |
3 | 3 | ||
4 | #include <sys/mman.h> | 4 | #include <sys/mman.h> |
5 | #include <sys/stat.h> | 5 | #include <sys/stat.h> |
6 | #include <sys/types.h> | 6 | #include <sys/types.h> |
7 | 7 | ||
8 | #include <unistd.h> | 8 | #include <unistd.h> |
9 | 9 | ||
10 | 10 | ||
11 | #include <qfile.h> | 11 | #include <qfile.h> |
12 | #include <qvector.h> | 12 | #include <qvector.h> |
13 | 13 | ||
14 | #include <qpe/global.h> | 14 | #include <qpe/global.h> |
15 | #include <qpe/stringutil.h> | 15 | #include <qpe/stringutil.h> |
16 | #include <qpe/timeconversion.h> | 16 | #include <qpe/timeconversion.h> |
17 | 17 | ||
18 | #include <opie/xmltree.h> | ||
19 | |||
20 | #include "otodoaccessxml.h" | 18 | #include "otodoaccessxml.h" |
21 | 19 | ||
22 | OTodoAccessXML::OTodoAccessXML( const QString& appName, | 20 | OTodoAccessXML::OTodoAccessXML( const QString& appName, |
23 | const QString& fileName ) | 21 | const QString& fileName ) |
24 | : OTodoAccessBackend(), m_app( appName ), m_opened( false ), m_changed( false ) | 22 | : OTodoAccessBackend(), m_app( appName ), m_opened( false ), m_changed( false ) |
25 | { | 23 | { |
26 | if (!fileName.isEmpty() ) | 24 | if (!fileName.isEmpty() ) |
27 | m_file = fileName; | 25 | m_file = fileName; |
28 | else | 26 | else |
29 | m_file = Global::applicationFileName( "todolist", "todolist.xml" ); | 27 | m_file = Global::applicationFileName( "todolist", "todolist.xml" ); |
30 | } | 28 | } |
31 | OTodoAccessXML::~OTodoAccessXML() { | 29 | OTodoAccessXML::~OTodoAccessXML() { |
32 | 30 | ||
33 | } | 31 | } |
34 | bool OTodoAccessXML::load() { | 32 | bool OTodoAccessXML::load() { |
35 | m_opened = true; | 33 | m_opened = true; |
36 | m_changed = false; | 34 | m_changed = false; |
37 | /* initialize dict */ | 35 | /* initialize dict */ |
38 | /* | 36 | /* |
39 | * UPDATE dict if you change anything!!! | 37 | * UPDATE dict if you change anything!!! |
40 | */ | 38 | */ |
41 | QAsciiDict<int> dict(21); | 39 | QAsciiDict<int> dict(21); |
42 | dict.setAutoDelete( TRUE ); | 40 | dict.setAutoDelete( TRUE ); |
43 | dict.insert("Categories" , new int(OTodo::Category) ); | 41 | dict.insert("Categories" , new int(OTodo::Category) ); |