summaryrefslogtreecommitdiffabout
path: root/kaddressbook/xxport/opie/opie_xxport.cpp
authorulf69 <ulf69>2004-07-06 04:04:56 (UTC)
committer ulf69 <ulf69>2004-07-06 04:04:56 (UTC)
commitc4bd138c16e8d34294502c9da5706e21337ba53d (patch) (unidiff)
tree08f15d9575264b04bcb0135077918175e2cd1650 /kaddressbook/xxport/opie/opie_xxport.cpp
parent6a826e654102e78abb6d14f80a3679575e5d3c9a (diff)
downloadkdepimpi-c4bd138c16e8d34294502c9da5706e21337ba53d.zip
kdepimpi-c4bd138c16e8d34294502c9da5706e21337ba53d.tar.gz
kdepimpi-c4bd138c16e8d34294502c9da5706e21337ba53d.tar.bz2
ok button of dialog works now. import of vcards works now, export of opie resources too.
Diffstat (limited to 'kaddressbook/xxport/opie/opie_xxport.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/xxport/opie/opie_xxport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kaddressbook/xxport/opie/opie_xxport.cpp b/kaddressbook/xxport/opie/opie_xxport.cpp
index f30a205..d1def18 100644
--- a/kaddressbook/xxport/opie/opie_xxport.cpp
+++ b/kaddressbook/xxport/opie/opie_xxport.cpp
@@ -133,25 +133,25 @@ bool OpieXXPort::exportContacts( const KABC::AddresseeList &list, const QString
133 if (res == false) 133 if (res == false)
134 qDebug("Unable to append Contact %s", c.fullName().latin1()); 134 qDebug("Unable to append Contact %s", c.fullName().latin1());
135 } 135 }
136 else 136 else
137 { 137 {
138 qDebug("Unable to convert Addressee %s", addressee.formattedName().latin1()); 138 qDebug("Unable to convert Addressee %s", addressee.formattedName().latin1());
139 } 139 }
140 } 140 }
141 141
142 access->save(); 142 access->save();
143 143
144 delete access; 144 delete access;
145 delete backend; 145//US the deletion of the access object deletes the backend object as well.
146 146
147 return true; 147 return true;
148} 148}
149 149
150KABC::AddresseeList OpieXXPort::importContacts( const QString& ) const 150KABC::AddresseeList OpieXXPort::importContacts( const QString& ) const
151{ 151{
152 KABC::AddresseeList adrlst; 152 KABC::AddresseeList adrlst;
153 153
154 QString name = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; 154 QString name = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml";
155 155
156#ifndef KAB_EMBEDDED 156#ifndef KAB_EMBEDDED
157 QString fileName = KFileDialog::getOpenFileName( name ); 157 QString fileName = KFileDialog::getOpenFileName( name );
@@ -186,17 +186,17 @@ KABC::AddresseeList OpieXXPort::importContacts( const QString& ) const
186 KABC::Addressee addressee; 186 KABC::Addressee addressee;
187 187
188 res = mConverter.opieToAddressee( c, addressee ); 188 res = mConverter.opieToAddressee( c, addressee );
189 189
190 if ( !addressee.isEmpty() && res ) { 190 if ( !addressee.isEmpty() && res ) {
191 adrlst.append( addressee ); 191 adrlst.append( addressee );
192 } 192 }
193 193
194// qDebug("found %s", c.fullName().latin1()); 194// qDebug("found %s", c.fullName().latin1());
195 } 195 }
196 196
197 delete access; 197 delete access;
198 delete backend; 198//US the deletion of the access object deletes the backend object as well.
199 199
200 return adrlst; 200 return adrlst;
201 201
202} 202}