-rw-r--r-- | kabc/plugins/qtopia/qtopiaconverter.cpp | 2 | ||||
-rw-r--r-- | kabc/plugins/sharpdtm/resourcesharpdtm.cpp | 39 |
2 files changed, 4 insertions, 37 deletions
diff --git a/kabc/plugins/qtopia/qtopiaconverter.cpp b/kabc/plugins/qtopia/qtopiaconverter.cpp index 430c7b3..5eab1be 100644 --- a/kabc/plugins/qtopia/qtopiaconverter.cpp +++ b/kabc/plugins/qtopia/qtopiaconverter.cpp | |||
@@ -88,3 +88,3 @@ bool QtopiaConverter::qtopiaToAddressee( const PimContact &contact, Addressee &a | |||
88 | addr.setExternalUID( exuid ); | 88 | addr.setExternalUID( exuid ); |
89 | qDebug("QtopiaConverter:set %s uid %s ",addr.originalExternalUID().latin1(),addr.externalUID().latin1() ); | 89 | // qDebug("QtopiaConverter:set %s uid %s ",addr.originalExternalUID().latin1(),addr.externalUID().latin1() ); |
90 | 90 | ||
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.cpp b/kabc/plugins/sharpdtm/resourcesharpdtm.cpp index adc7256..c013f52 100644 --- a/kabc/plugins/sharpdtm/resourcesharpdtm.cpp +++ b/kabc/plugins/sharpdtm/resourcesharpdtm.cpp | |||
@@ -231,16 +231,3 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
231 | //(*it).setOriginalExternalUID( QString::number( id ) ); | 231 | //(*it).setOriginalExternalUID( QString::number( id ) ); |
232 | map.insert(id,(*it).uid()); | 232 | map.insert(id,(*it).uid()); |
233 | |||
234 | #if 0 | ||
235 | KABC::Addressee addressee; | ||
236 | res = mConverter->sharpToAddressee( id, mAccess, addressee ); | ||
237 | addressee.setUid((*it).uid() ); | ||
238 | (it*).setTempSyncStat( SYNC_TEMPSTATE_NEW_ID ); | ||
239 | res = mAccess->finishEditCard(&id); | ||
240 | //qDebug("2NEW id is %d", id); | ||
241 | addressee.setExternalUID( QString::number( id ) ); | ||
242 | addressee.setOriginalExternalUID( QString::number( id ) ); | ||
243 | changedAddressees.append( addressee ); | ||
244 | #endif | ||
245 | |||
246 | if (res == false) | 233 | if (res == false) |
@@ -258,5 +245,3 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
258 | res = mAccess->deleteCard(&id); | 245 | res = mAccess->deleteCard(&id); |
259 | if ( res ) | 246 | if ( !res ) |
260 | qDebug("delete success "); | ||
261 | else | ||
262 | qDebug("delete error "); | 247 | qDebug("delete error "); |
@@ -266,3 +251,2 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
266 | //changed | 251 | //changed |
267 | qDebug("changed ****"); | ||
268 | res = mAccess->startEditCard(id); | 252 | res = mAccess->startEditCard(id); |
@@ -276,11 +260,2 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
276 | map.insert(id,(*it).uid()); | 260 | map.insert(id,(*it).uid()); |
277 | |||
278 | #if 0 | ||
279 | KABC::Addressee addressee; | ||
280 | res = mConverter->sharpToAddressee( id, mAccess, addressee ); | ||
281 | addressee.setUid((*it).uid() ); | ||
282 | addressee.setTempSyncStat( SYNC_TEMPSTATE_NEW_CSUM ); | ||
283 | changedAddressees.append( addressee ); | ||
284 | res = mAccess->finishEditCard(&id); | ||
285 | #endif | ||
286 | if (res == false) | 261 | if (res == false) |
@@ -307,3 +282,2 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
307 | KABC::Addressee addressee; | 282 | KABC::Addressee addressee; |
308 | qDebug("found change %d %s ", idint, itam.data().latin1()); | ||
309 | res = mConverter->sharpToAddressee( id, mAccess, addressee ); | 283 | res = mConverter->sharpToAddressee( id, mAccess, addressee ); |
@@ -319,10 +293,3 @@ bool ResourceSharpDTM::save( Ticket *ticket ) | |||
319 | } | 293 | } |
320 | #if 0 | 294 | |
321 | KABC::Addressee::List::Iterator it2; | ||
322 | for ( it2 = changedAddressees.begin(); it2 != changedAddressees.end(); ++it2 ) { | ||
323 | (*it2).computeCsum( "Sharp_DTM" ); | ||
324 | qDebug("CSUM: %s ",(*it2).getCsum( "Sharp_DTM" ).latin1() ); | ||
325 | addressBook()->insertAddressee((*it2)); | ||
326 | } | ||
327 | #endif | ||
328 | //US mAccess->save(); | 295 | //US mAccess->save(); |