summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/sharpdtm/resourcesharpdtm.h10
-rw-r--r--kabc/plugins/sharpdtm/sharpdtmE.pro2
-rw-r--r--kaddressbook/xxport/qtopia/qtopia_xxport.cpp49
3 files changed, 30 insertions, 31 deletions
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.h b/kabc/plugins/sharpdtm/resourcesharpdtm.h
index 32d0be1..d2e2a52 100644
--- a/kabc/plugins/sharpdtm/resourcesharpdtm.h
+++ b/kabc/plugins/sharpdtm/resourcesharpdtm.h
@@ -42,3 +42,3 @@ namespace KABC {
42class ResourceConfigWidget; 42class ResourceConfigWidget;
43class QtopiaConverter; 43class SharpDTMConverter;
44 44
@@ -85,3 +85,3 @@ public:
85 virtual void doClose(); 85 virtual void doClose();
86 86
87 /** 87 /**
@@ -137,4 +137,4 @@ protected:
137private: 137private:
138 QtopiaConverter* mConverter; 138 SharpDTMConverter* mConverter;
139 139
140 QString mFileName; 140 QString mFileName;
@@ -142,3 +142,3 @@ private:
142 QString mLockUniqueName; 142 QString mLockUniqueName;
143 143
144 KDirWatch mDirWatch; 144 KDirWatch mDirWatch;
diff --git a/kabc/plugins/sharpdtm/sharpdtmE.pro b/kabc/plugins/sharpdtm/sharpdtmE.pro
index f29be2f..7c7a6d5 100644
--- a/kabc/plugins/sharpdtm/sharpdtmE.pro
+++ b/kabc/plugins/sharpdtm/sharpdtmE.pro
@@ -5,3 +5,3 @@ TARGET = microkabc_sharpdtm
5 5
6INCLUDEPATH += ../.. ../../../external/sharpdtm/include ../../converter/qtopia ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat $(QPEDIR)/include 6INCLUDEPATH += ../.. ../../../external/sharpdtm/include ../../converter/sharpdtm ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../microkde/kio/kio ../../../qtcompat $(QPEDIR)/include
7 7
diff --git a/kaddressbook/xxport/qtopia/qtopia_xxport.cpp b/kaddressbook/xxport/qtopia/qtopia_xxport.cpp
index bf39fdb..c1ed03e 100644
--- a/kaddressbook/xxport/qtopia/qtopia_xxport.cpp
+++ b/kaddressbook/xxport/qtopia/qtopia_xxport.cpp
@@ -90,5 +90,5 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
90 QString fileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; 90 QString fileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml";
91 91
92 AddressBookAccess* access = new AddressBookAccess(); 92 AddressBookAccess* access = new AddressBookAccess();
93 93
94 if ( !access ) { 94 if ( !access ) {
@@ -102,3 +102,3 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
102 KABC::QtopiaConverter mConverter; 102 KABC::QtopiaConverter mConverter;
103 103
104 bool res = mConverter.init(); 104 bool res = mConverter.init();
@@ -110,7 +110,7 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
110 delete access; 110 delete access;
111 return false; 111 return false;
112 } 112 }
113 113
114 //Now check if the file has already entries, and ask the user if he wants to delete them first. 114 //Now check if the file has already entries, and ask the user if he wants to delete them first.
115 { //create a new scope 115 { //create a new scope
116 AddressBookIterator it(*access); 116 AddressBookIterator it(*access);
@@ -130,3 +130,3 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
130 } 130 }
131 131
132 KABC::Addressee::List::ConstIterator it; 132 KABC::Addressee::List::ConstIterator it;
@@ -134,4 +134,3 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
134 PimContact c; 134 PimContact c;
135 KABC::Addressee addressee = (*it); 135
136
137 res = mConverter.addresseeToQtopia( *it, c ); 136 res = mConverter.addresseeToQtopia( *it, c );
@@ -142,5 +141,5 @@ bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QStrin
142 } 141 }
143 142
144 delete access; 143 delete access;
145 144
146 return true; 145 return true;
@@ -151,3 +150,3 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
151 KABC::AddresseeList adrlst; 150 KABC::AddresseeList adrlst;
152 151
153 QString fileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; 152 QString fileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml";
@@ -155,3 +154,3 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
155 AddressBookAccess* access = new AddressBookAccess(); 154 AddressBookAccess* access = new AddressBookAccess();
156 155
157 if ( !access ) { 156 if ( !access ) {
@@ -163,3 +162,3 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
163 } 162 }
164 163
165 KABC::QtopiaConverter mConverter; 164 KABC::QtopiaConverter mConverter;
@@ -175,6 +174,6 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
175 } 174 }
176 175
177 176
178 177
179 { //create a new scope 178 { //create a new scope
180 AddressBookIterator it(*access); 179 AddressBookIterator it(*access);
@@ -183,7 +182,7 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
183 const PimContact*contact = it.current(); 182 const PimContact*contact = it.current();
184 183
185 KABC::Addressee addressee; 184 KABC::Addressee addressee;
186 185
187 res = mConverter.qtopiaToAddressee( (*contact), addressee ); 186 res = mConverter.qtopiaToAddressee( (*contact), addressee );
188 187
189 if ( !addressee.isEmpty() && res ) 188 if ( !addressee.isEmpty() && res )
@@ -194,8 +193,8 @@ KABC::AddresseeList QtopiaXXPort::importContacts( const QString& ) const
194 } 193 }
195 194
196 delete access; 195 delete access;
197//US the deletion of the access object deletes the backend object as well. 196//US the deletion of the access object deletes the backend object as well.
198 197
199 return adrlst; 198 return adrlst;
200 199
201} 200}