summaryrefslogtreecommitdiffabout
path: root/kabc
Side-by-side diff
Diffstat (limited to 'kabc') (more/less context) (show whitespace changes)
-rw-r--r--kabc/addressbook.cpp11
-rw-r--r--kabc/addressbook.h1
2 files changed, 10 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index 9332e21..6e8d027 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -526,21 +526,28 @@ Addressee::List AddressBook::getExternLastSyncAddressees()
}
return results;
}
void AddressBook::resetTempSyncStat()
{
-
-
Iterator it;
for ( it = begin(); it != end(); ++it ) {
(*it).setTempSyncStat ( SYNC_TEMPSTATE_INITIAL );
}
}
+QStringList AddressBook:: uidList()
+{
+ QStringList results;
+ Iterator it;
+ for ( it = begin(); it != end(); ++it ) {
+ results.append( (*it).uid() );
+ }
+ return results;
+}
Addressee::List AddressBook::allAddressees()
{
return d->mAddressees;
}
diff --git a/kabc/addressbook.h b/kabc/addressbook.h
index 05225f9..650a638 100644
--- a/kabc/addressbook.h
+++ b/kabc/addressbook.h
@@ -288,12 +288,13 @@ class AddressBook : public QObject
*/
void cleanUp();
// sync stuff
Addressee::List getExternLastSyncAddressees();
void resetTempSyncStat();
+ QStringList uidList();
signals:
/**
Emitted, when the address book has changed on disk.
*/