summaryrefslogtreecommitdiffabout
path: root/libkabcwrap/kabcaddressbookplugin.cpp
authorulf69 <ulf69>2004-08-06 18:30:46 (UTC)
committer ulf69 <ulf69>2004-08-06 18:30:46 (UTC)
commit8d905d7489f50210afde611138245ae2ee180f8f (patch) (side-by-side diff)
tree27ef58359afe49e2e4e35734cf8fbe679cd6ed9c /libkabcwrap/kabcaddressbookplugin.cpp
parent555e6179368fb2446c802041a01db4c9dad7db8f (diff)
downloadkdepimpi-8d905d7489f50210afde611138245ae2ee180f8f.zip
kdepimpi-8d905d7489f50210afde611138245ae2ee180f8f.tar.gz
kdepimpi-8d905d7489f50210afde611138245ae2ee180f8f.tar.bz2
functionality now implemented in kabc resource plugins
Diffstat (limited to 'libkabcwrap/kabcaddressbookplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkabcwrap/kabcaddressbookplugin.cpp84
1 files changed, 0 insertions, 84 deletions
diff --git a/libkabcwrap/kabcaddressbookplugin.cpp b/libkabcwrap/kabcaddressbookplugin.cpp
deleted file mode 100644
index 25f51d3..0000000
--- a/libkabcwrap/kabcaddressbookplugin.cpp
+++ b/dev/null
@@ -1,84 +0,0 @@
-/*US
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <opie/ocontact.h>
-#include <opie/orecordlist.h>
-#include "opieaddressee.h"
-*/
-#include <stdio.h>
-#include "kabcaddressbookplugin.h"
-
-KABCAddressBookPlugin::KABCAddressBookPlugin() : ref(0) {
-
-//US access = new OContactAccess("OpieAddressBookPlugin");
-
-}
-
-KABC::Addressee::List KABCAddressBookPlugin::getAddressees() {
- KABC::Addressee::List results;
-
-
-/*US
- OContactAccess access("OpieAddressBookPlugin");
- OContactAccess::List::Iterator it;
- ORecordList<OContact> accessList = access.sorted(true,0,0,0);
- for(it = accessList.begin(); it != accessList.end(); ++it ) {
- OpieAddressee addressee( *it );
- results.append(addressee);
- }
-*/
- qDebug("KABCAddressBookPlugin::getAddressees has to be implemented");
-
- return results;
-}
-
-QString KABCAddressBookPlugin::name() {
- return QString::QString("KABCAddressBookPlugin");
-}
-
-
-KABC::Addressee::List KABCAddressBookPlugin::findByEmail(const QString &email) {
-
-printf("KABCAddressBookPlugin::findByEmail: email=%s\n", email.ascii());
- KABC::Addressee::List results;
-/*US
-
- ORecordList<OContact> accessList = access->sorted(true,0,0,0);
- OContactAccess::List::Iterator it;
- for(it = accessList.begin(); it != accessList.end(); ++it ) {
- OContact contact = *it;
- QStringList emailList = contact.emailList();
- QStringList foundEmails = emailList.grep(email,false);
- if (foundEmails.count() >= 1) {
- OpieAddressee a(contact);
- printf("Found Contact %s\n", a.formattedName().ascii());
- results.append(a);
- }
- }
-*/
- qDebug("KABCAddressBookPlugin::findByEmail has to be implemented");
-
- return results;
-
-}
-
-QRESULT KABCAddressBookPlugin::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
-{
-printf("Start: KABCAddressBookPlugin::queryInterface\n");
- *iface = 0;
- if ( uuid == IID_QUnknown )
- *iface = this;
- else if ( uuid == IID_KOAddressBookInterface )
- *iface = this;
- if ( *iface )
- (*iface)->addRef();
- return QS_OK;
-printf("End: KABCAddressBookPlugin::queryInterface\n");
-}
-
-Q_EXPORT_INTERFACE()
-{
- Q_CREATE_INSTANCE( KABCAddressBookPlugin )
-}
-