summaryrefslogtreecommitdiffabout
path: root/pluginqtopiakabc/qtopiaaddressbookplugin.cpp
authorulf69 <ulf69>2004-08-06 18:27:05 (UTC)
committer ulf69 <ulf69>2004-08-06 18:27:05 (UTC)
commit555e6179368fb2446c802041a01db4c9dad7db8f (patch) (side-by-side diff)
tree92f270227cebb3e44420c9d73dc72500f8b7e4c8 /pluginqtopiakabc/qtopiaaddressbookplugin.cpp
parent79bb2950bd27b5e138d2fd7afe2ab37b6b036cae (diff)
downloadkdepimpi-555e6179368fb2446c802041a01db4c9dad7db8f.zip
kdepimpi-555e6179368fb2446c802041a01db4c9dad7db8f.tar.gz
kdepimpi-555e6179368fb2446c802041a01db4c9dad7db8f.tar.bz2
functionality now implemented by kabc resourceadapter
Diffstat (limited to 'pluginqtopiakabc/qtopiaaddressbookplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pluginqtopiakabc/qtopiaaddressbookplugin.cpp57
1 files changed, 0 insertions, 57 deletions
diff --git a/pluginqtopiakabc/qtopiaaddressbookplugin.cpp b/pluginqtopiakabc/qtopiaaddressbookplugin.cpp
deleted file mode 100644
index 59d7881..0000000
--- a/pluginqtopiakabc/qtopiaaddressbookplugin.cpp
+++ b/dev/null
@@ -1,57 +0,0 @@
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qpe/pim/contact.h>
-#include <select_addressee_base.h>
-#include "qtopiaaddressbookplugin.h"
-#include "qtopiaaddressee.h"
-
-QtopiaAddressBookPlugin::QtopiaAddressBookPlugin() : ref(0) {
- qDebug("QtopiaAddressBookPlugin::QtopiaAddressBookPlugin");
- access = new AddressBookAccess();
-}
-
-QtopiaAddressBookPlugin::~QtopiaAddressBookPlugin() {
- qDebug("QtopiaAddressBookPlugin::~QtopiaAddressBookPlugin");
- delete &access;
-}
-
-KABC::Addressee::List QtopiaAddressBookPlugin::getAddressees() {
-
- qDebug("Start: QtopiaAddressBookPlugin::getAddressees");
-
- AddressBookIterator it(*access);
- const PimContact *contact;
- KABC::Addressee::List result;
-
- for (contact=it.toFirst(); it.current(); ++it) {
- contact = it.current();
- result.append(QtopiaAddressee(*contact));
- }
-
- qDebug("End: QtopiaAddressBookPlugin::getAddressees");
-
- return result;
-}
-
-QString QtopiaAddressBookPlugin::name() {
- return "Qtopia addressbook plugin";
-}
-
-QRESULT QtopiaAddressBookPlugin::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
-{
- *iface = 0;
- if ( uuid == IID_QUnknown )
- *iface = this;
- else if ( uuid == IID_KOAddressBookInterface )
- *iface = this;
- if ( *iface )
- (*iface)->addRef();
- return QS_OK;
-}
-
-Q_EXPORT_INTERFACE()
-{
- Q_CREATE_INSTANCE( QtopiaAddressBookPlugin )
-}
-