summaryrefslogtreecommitdiffabout
path: root/kabc
Side-by-side diff
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/qtopia/qtopiaconverter.cpp2
-rw-r--r--kabc/plugins/sharpdtm/resourcesharpdtm.cpp39
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
addr.setExternalUID( exuid );
- qDebug("QtopiaConverter:set %s uid %s ",addr.originalExternalUID().latin1(),addr.externalUID().latin1() );
+ // qDebug("QtopiaConverter:set %s uid %s ",addr.originalExternalUID().latin1(),addr.externalUID().latin1() );
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 )
//(*it).setOriginalExternalUID( QString::number( id ) );
- map.insert(id,(*it).uid());
-
-#if 0
- KABC::Addressee addressee;
- res = mConverter->sharpToAddressee( id, mAccess, addressee );
- addressee.setUid((*it).uid() );
- (it*).setTempSyncStat( SYNC_TEMPSTATE_NEW_ID );
- res = mAccess->finishEditCard(&id);
- //qDebug("2NEW id is %d", id);
- addressee.setExternalUID( QString::number( id ) );
- addressee.setOriginalExternalUID( QString::number( id ) );
- changedAddressees.append( addressee );
-#endif
-
+ map.insert(id,(*it).uid());
if (res == false)
@@ -258,5 +245,3 @@ bool ResourceSharpDTM::save( Ticket *ticket )
res = mAccess->deleteCard(&id);
- if ( res )
- qDebug("delete success ");
- else
+ if ( !res )
qDebug("delete error ");
@@ -266,3 +251,2 @@ bool ResourceSharpDTM::save( Ticket *ticket )
//changed
- qDebug("changed ****");
res = mAccess->startEditCard(id);
@@ -276,11 +260,2 @@ bool ResourceSharpDTM::save( Ticket *ticket )
map.insert(id,(*it).uid());
-
-#if 0
- KABC::Addressee addressee;
- res = mConverter->sharpToAddressee( id, mAccess, addressee );
- addressee.setUid((*it).uid() );
- addressee.setTempSyncStat( SYNC_TEMPSTATE_NEW_CSUM );
- changedAddressees.append( addressee );
- res = mAccess->finishEditCard(&id);
-#endif
if (res == false)
@@ -307,3 +282,2 @@ bool ResourceSharpDTM::save( Ticket *ticket )
KABC::Addressee addressee;
- qDebug("found change %d %s ", idint, itam.data().latin1());
res = mConverter->sharpToAddressee( id, mAccess, addressee );
@@ -319,10 +293,3 @@ bool ResourceSharpDTM::save( Ticket *ticket )
}
-#if 0
- KABC::Addressee::List::Iterator it2;
- for ( it2 = changedAddressees.begin(); it2 != changedAddressees.end(); ++it2 ) {
- (*it2).computeCsum( "Sharp_DTM" );
- qDebug("CSUM: %s ",(*it2).getCsum( "Sharp_DTM" ).latin1() );
- addressBook()->insertAddressee((*it2));
- }
-#endif
+
//US mAccess->save();