Diffstat (limited to 'libopie/pim/ocontactaccessbackend_xml.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/pim/ocontactaccessbackend_xml.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie/pim/ocontactaccessbackend_xml.cpp b/libopie/pim/ocontactaccessbackend_xml.cpp index c5a7820..661cd51 100644 --- a/libopie/pim/ocontactaccessbackend_xml.cpp +++ b/libopie/pim/ocontactaccessbackend_xml.cpp | |||
@@ -8,24 +8,29 @@ | |||
8 | *modify it under the terms of the GNU Library General Public | 8 | *modify it under the terms of the GNU Library General Public |
9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. | 10 | * version 2 of the License, or (at your option) any later version. |
11 | * ===================================================================== | 11 | * ===================================================================== |
12 | * ToDo: XML-Backend: Automatic reload if something was changed... | 12 | * ToDo: XML-Backend: Automatic reload if something was changed... |
13 | * | 13 | * |
14 | * | 14 | * |
15 | * ===================================================================== | 15 | * ===================================================================== |
16 | * Version: $Id$ | 16 | * Version: $Id$ |
17 | * ===================================================================== | 17 | * ===================================================================== |
18 | * History: | 18 | * History: |
19 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.5 2003/04/13 18:07:10 zecke | ||
21 | * More API doc | ||
22 | * QString -> const QString& | ||
23 | * QString = 0l -> QString::null | ||
24 | * | ||
20 | * Revision 1.4 2003/03/21 14:32:54 mickeyl | 25 | * Revision 1.4 2003/03/21 14:32:54 mickeyl |
21 | * g++ compliance fix: default arguments belong into the declaration, but not the definition | 26 | * g++ compliance fix: default arguments belong into the declaration, but not the definition |
22 | * | 27 | * |
23 | * Revision 1.3 2003/03/21 12:26:28 eilers | 28 | * Revision 1.3 2003/03/21 12:26:28 eilers |
24 | * Fixing small bug: If we search a birthday from today to today, it returned | 29 | * Fixing small bug: If we search a birthday from today to today, it returned |
25 | * every contact .. | 30 | * every contact .. |
26 | * | 31 | * |
27 | * Revision 1.2 2003/03/21 10:33:09 eilers | 32 | * Revision 1.2 2003/03/21 10:33:09 eilers |
28 | * Merged speed optimized xml backend for contacts to main. | 33 | * Merged speed optimized xml backend for contacts to main. |
29 | * Added QDateTime to querybyexample. For instance, it is now possible to get | 34 | * Added QDateTime to querybyexample. For instance, it is now possible to get |
30 | * all Birthdays/Anniversaries between two dates. This should be used | 35 | * all Birthdays/Anniversaries between two dates. This should be used |
31 | * to show all birthdays in the datebook.. | 36 | * to show all birthdays in the datebook.. |
@@ -98,25 +103,25 @@ | |||
98 | #include <qpe/global.h> | 103 | #include <qpe/global.h> |
99 | 104 | ||
100 | #include <opie/xmltree.h> | 105 | #include <opie/xmltree.h> |
101 | #include "ocontactaccessbackend.h" | 106 | #include "ocontactaccessbackend.h" |
102 | #include "ocontactaccess.h" | 107 | #include "ocontactaccess.h" |
103 | 108 | ||
104 | #include <stdlib.h> | 109 | #include <stdlib.h> |
105 | #include <errno.h> | 110 | #include <errno.h> |
106 | 111 | ||
107 | using namespace Opie; | 112 | using namespace Opie; |
108 | 113 | ||
109 | 114 | ||
110 | OContactAccessBackend_XML::OContactAccessBackend_XML ( QString appname, QString filename ): | 115 | OContactAccessBackend_XML::OContactAccessBackend_XML ( const QString& appname, const QString& filename ): |
111 | m_changed( false ) | 116 | m_changed( false ) |
112 | { | 117 | { |
113 | // Just m_contactlist should call delete if an entry | 118 | // Just m_contactlist should call delete if an entry |
114 | // is removed. | 119 | // is removed. |
115 | m_contactList.setAutoDelete( true ); | 120 | m_contactList.setAutoDelete( true ); |
116 | m_uidToContact.setAutoDelete( false ); | 121 | m_uidToContact.setAutoDelete( false ); |
117 | 122 | ||
118 | m_appName = appname; | 123 | m_appName = appname; |
119 | 124 | ||
120 | /* Set journalfile name ... */ | 125 | /* Set journalfile name ... */ |
121 | m_journalName = getenv("HOME"); | 126 | m_journalName = getenv("HOME"); |
122 | m_journalName +="/.abjournal" + appname; | 127 | m_journalName +="/.abjournal" + appname; |