summaryrefslogtreecommitdiffabout
path: root/kabc
Side-by-side diff
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressbook.cpp15
-rw-r--r--kabc/addressbook.h3
2 files changed, 13 insertions, 5 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index 9332e21..6e8d027 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -531,5 +531,3 @@ void AddressBook::resetTempSyncStat()
{
-
-
- Iterator it;
+ Iterator it;
for ( it = begin(); it != end(); ++it ) {
@@ -539,3 +537,12 @@ void AddressBook::resetTempSyncStat()
}
-
+
+QStringList AddressBook:: uidList()
+{
+ QStringList results;
+ Iterator it;
+ for ( it = begin(); it != end(); ++it ) {
+ results.append( (*it).uid() );
+ }
+ return results;
+}
diff --git a/kabc/addressbook.h b/kabc/addressbook.h
index 05225f9..650a638 100644
--- a/kabc/addressbook.h
+++ b/kabc/addressbook.h
@@ -292,3 +292,4 @@ class AddressBook : public QObject
Addressee::List getExternLastSyncAddressees();
- void resetTempSyncStat();
+ void resetTempSyncStat();
+ QStringList uidList();