-rw-r--r-- | libopie2/opiecore/opiecore.pro | 6 | ||||
-rw-r--r-- | libopie2/opiecore/xmltree.cpp (renamed from libopie2/opiepim/core/backends/private/xmltree.cc) | 2 | ||||
-rw-r--r-- | libopie2/opiecore/xmltree.h (renamed from libopie2/opiepim/core/backends/private/xmltree.h) | 4 | ||||
-rw-r--r-- | libopie2/opiepim/backend/backends.pro | 6 | ||||
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp | 5 |
5 files changed, 10 insertions, 13 deletions
diff --git a/libopie2/opiecore/opiecore.pro b/libopie2/opiecore/opiecore.pro index ff3c036..67ef072 100644 --- a/libopie2/opiecore/opiecore.pro +++ b/libopie2/opiecore/opiecore.pro | |||
@@ -4,26 +4,28 @@ DESTDIR = $(OPIEDIR)/lib | |||
4 | HEADERS = oapplication.h \ | 4 | HEADERS = oapplication.h \ |
5 | oconfig.h \ | 5 | oconfig.h \ |
6 | odebug.h \ | 6 | odebug.h \ |
7 | oglobal.h \ | 7 | oglobal.h \ |
8 | oglobalsettings.h \ | 8 | oglobalsettings.h \ |
9 | oprocess.h \ | 9 | oprocess.h \ |
10 | oprocctrl.h \ | 10 | oprocctrl.h \ |
11 | osmartpointer.h \ | 11 | osmartpointer.h \ |
12 | ostorageinfo.h | 12 | ostorageinfo.h \ |
13 | xmltree.h | ||
13 | 14 | ||
14 | SOURCES = oapplication.cpp \ | 15 | SOURCES = oapplication.cpp \ |
15 | oconfig.cpp \ | 16 | oconfig.cpp \ |
16 | odebug.cpp \ | 17 | odebug.cpp \ |
17 | oglobal.cpp \ | 18 | oglobal.cpp \ |
18 | oglobalsettings.cpp \ | 19 | oglobalsettings.cpp \ |
19 | oprocess.cpp \ | 20 | oprocess.cpp \ |
20 | oprocctrl.cpp \ | 21 | oprocctrl.cpp \ |
21 | ostorageinfo.cpp | 22 | ostorageinfo.cpp \ |
23 | xmltree.cpp | ||
22 | 24 | ||
23 | include ( device/device.pro ) | 25 | include ( device/device.pro ) |
24 | 26 | ||
25 | INTERFACES = | 27 | INTERFACES = |
26 | TARGET = opiecore2 | 28 | TARGET = opiecore2 |
27 | VERSION = 1.9.0 | 29 | VERSION = 1.9.0 |
28 | INCLUDEPATH += $(OPIEDIR)/include | 30 | INCLUDEPATH += $(OPIEDIR)/include |
29 | DEPENDPATH += $(OPIEDIR)/include | 31 | DEPENDPATH += $(OPIEDIR)/include |
diff --git a/libopie2/opiepim/core/backends/private/xmltree.cc b/libopie2/opiecore/xmltree.cpp index 40749ca..72fe9fd 100644 --- a/libopie2/opiepim/core/backends/private/xmltree.cc +++ b/libopie2/opiecore/xmltree.cpp | |||
@@ -20,17 +20,17 @@ | |||
20 | #include "xmltree.h" | 20 | #include "xmltree.h" |
21 | 21 | ||
22 | #include <qpe/stringutil.h> | 22 | #include <qpe/stringutil.h> |
23 | 23 | ||
24 | #include <qxml.h> | 24 | #include <qxml.h> |
25 | 25 | ||
26 | #include <assert.h> | 26 | #include <assert.h> |
27 | 27 | ||
28 | using namespace Opie::Pim::Private; | 28 | using namespace Opie::Core; |
29 | 29 | ||
30 | XMLElement::XMLElement() | 30 | XMLElement::XMLElement() |
31 | : m_parent( 0 ), m_next( 0 ), m_prev( 0 ), m_first( 0 ), m_last( 0 ) | 31 | : m_parent( 0 ), m_next( 0 ), m_prev( 0 ), m_first( 0 ), m_last( 0 ) |
32 | { | 32 | { |
33 | } | 33 | } |
34 | 34 | ||
35 | XMLElement::~XMLElement() | 35 | XMLElement::~XMLElement() |
36 | { | 36 | { |
diff --git a/libopie2/opiepim/core/backends/private/xmltree.h b/libopie2/opiecore/xmltree.h index 9817a02..5fd79e7 100644 --- a/libopie2/opiepim/core/backends/private/xmltree.h +++ b/libopie2/opiecore/xmltree.h | |||
@@ -21,18 +21,17 @@ | |||
21 | #ifndef __bookmarks_h__ | 21 | #ifndef __bookmarks_h__ |
22 | #define __bookmarks_h__ | 22 | #define __bookmarks_h__ |
23 | 23 | ||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qmap.h> | 25 | #include <qmap.h> |
26 | #include <qtextstream.h> | 26 | #include <qtextstream.h> |
27 | 27 | ||
28 | namespace Opie { | 28 | namespace Opie { |
29 | namespace Pim { | 29 | namespace Core { |
30 | namespace Private{ | ||
31 | 30 | ||
32 | /** | 31 | /** |
33 | * A small xml lib written by Simon Hausmann. | 32 | * A small xml lib written by Simon Hausmann. |
34 | */ | 33 | */ |
35 | class XMLElement | 34 | class XMLElement |
36 | { | 35 | { |
37 | public: | 36 | public: |
38 | typedef QMap<QString, QString> AttributeMap; | 37 | typedef QMap<QString, QString> AttributeMap; |
@@ -111,12 +110,11 @@ private: | |||
111 | 110 | ||
112 | XMLElement( const XMLElement &rhs ); | 111 | XMLElement( const XMLElement &rhs ); |
113 | XMLElement &operator=( const XMLElement &rhs ); | 112 | XMLElement &operator=( const XMLElement &rhs ); |
114 | class Private; | 113 | class Private; |
115 | Private* d; | 114 | Private* d; |
116 | }; | 115 | }; |
117 | 116 | ||
118 | } | 117 | } |
119 | } | ||
120 | } // namespace Opie | 118 | } // namespace Opie |
121 | 119 | ||
122 | #endif | 120 | #endif |
diff --git a/libopie2/opiepim/backend/backends.pro b/libopie2/opiepim/backend/backends.pro index d4867ba..953d928 100644 --- a/libopie2/opiepim/backend/backends.pro +++ b/libopie2/opiepim/backend/backends.pro | |||
@@ -5,18 +5,17 @@ SOURCES += core/backends/ocontactaccessbackend_sql.cpp \ | |||
5 | core/backends/odatebookaccessbackend.cpp \ | 5 | core/backends/odatebookaccessbackend.cpp \ |
6 | core/backends/odatebookaccessbackend_xml.cpp \ | 6 | core/backends/odatebookaccessbackend_xml.cpp \ |
7 | core/backends/otodoaccessbackend.cpp \ | 7 | core/backends/otodoaccessbackend.cpp \ |
8 | core/backends/otodoaccess.cpp \ | 8 | core/backends/otodoaccess.cpp \ |
9 | core/backends/otodoaccesssql.cpp \ | 9 | core/backends/otodoaccesssql.cpp \ |
10 | core/backends/otodoaccessvcal.cpp \ | 10 | core/backends/otodoaccessvcal.cpp \ |
11 | core/backends/otodoaccessxml.cpp \ | 11 | core/backends/otodoaccessxml.cpp \ |
12 | core/backends/odatebookaccess.cpp \ | 12 | core/backends/odatebookaccess.cpp \ |
13 | core/backends/odatebookaccessbackend_sql.cpp \ | 13 | core/backends/odatebookaccessbackend_sql.cpp |
14 | core/backends/private/xmltree.cc | ||
15 | 14 | ||
16 | HEADERS += core/backends/obackendfactory.h \ | 15 | HEADERS += core/backends/obackendfactory.h \ |
17 | core/backends/ocontactaccessbackend.h \ | 16 | core/backends/ocontactaccessbackend.h \ |
18 | core/backends/ocontactaccessbackend_sql.h \ | 17 | core/backends/ocontactaccessbackend_sql.h \ |
19 | core/backends/ocontactaccessbackend_vcard.h \ | 18 | core/backends/ocontactaccessbackend_vcard.h \ |
20 | core/backends/ocontactaccessbackend_xml.h \ | 19 | core/backends/ocontactaccessbackend_xml.h \ |
21 | core/backends/ocontactaccess.h \ | 20 | core/backends/ocontactaccess.h \ |
22 | core/backends/odatebookaccessbackend.h \ | 21 | core/backends/odatebookaccessbackend.h \ |
@@ -24,10 +23,9 @@ HEADERS += core/backends/obackendfactory.h \ | |||
24 | core/backends/odatebookaccessbackend_xml.h \ | 23 | core/backends/odatebookaccessbackend_xml.h \ |
25 | core/backends/opimaccessbackend.h \ | 24 | core/backends/opimaccessbackend.h \ |
26 | core/backends/opimaccesstemplate.h \ | 25 | core/backends/opimaccesstemplate.h \ |
27 | core/backends/otodoaccessbackend.h \ | 26 | core/backends/otodoaccessbackend.h \ |
28 | core/backends/otodoaccess.h \ | 27 | core/backends/otodoaccess.h \ |
29 | core/backends/otodoaccesssql.h \ | 28 | core/backends/otodoaccesssql.h \ |
30 | core/backends/otodoaccessvcal.h \ | 29 | core/backends/otodoaccessvcal.h \ |
31 | core/backends/otodoaccessxml.h \ | 30 | core/backends/otodoaccessxml.h \ |
32 | core/backends/odatebookaccess.h \ | 31 | core/backends/odatebookaccess.h |
33 | core/backends/private/xmltree.h | ||
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp index f5e76d5..2b467c3 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp | |||
@@ -36,25 +36,24 @@ | |||
36 | #include <qfile.h> | 36 | #include <qfile.h> |
37 | #include <qfileinfo.h> | 37 | #include <qfileinfo.h> |
38 | #include <qregexp.h> | 38 | #include <qregexp.h> |
39 | #include <qarray.h> | 39 | #include <qarray.h> |
40 | #include <qmap.h> | 40 | #include <qmap.h> |
41 | 41 | ||
42 | #include <qpe/global.h> | 42 | #include <qpe/global.h> |
43 | 43 | ||
44 | #include "private/xmltree.h" | 44 | #include <opie2/xmltree.h> |
45 | #include <opie2/ocontactaccessbackend.h> | 45 | #include <opie2/ocontactaccessbackend.h> |
46 | #include <opie2/ocontactaccess.h> | 46 | #include <opie2/ocontactaccess.h> |
47 | 47 | ||
48 | #include <stdlib.h> | 48 | #include <stdlib.h> |
49 | #include <errno.h> | 49 | #include <errno.h> |
50 | 50 | ||
51 | using namespace Opie; | 51 | using namespace Opie::Core; |
52 | using namespace Opie::Pim::Private; | ||
53 | 52 | ||
54 | 53 | ||
55 | namespace Opie { | 54 | namespace Opie { |
56 | OPimContactAccessBackend_XML::OPimContactAccessBackend_XML ( const QString& appname, const QString& filename ): | 55 | OPimContactAccessBackend_XML::OPimContactAccessBackend_XML ( const QString& appname, const QString& filename ): |
57 | m_changed( false ) | 56 | m_changed( false ) |
58 | { | 57 | { |
59 | // Just m_contactlist should call delete if an entry | 58 | // Just m_contactlist should call delete if an entry |
60 | // is removed. | 59 | // is removed. |