summaryrefslogtreecommitdiffabout
path: root/libkabcwrap/kabcaddressbookplugin.cpp
Unidiff
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 @@
1/*US
2#include <qwidget.h>
3#include <qlayout.h>
4#include <qlistbox.h>
5#include <opie/ocontact.h>
6#include <opie/orecordlist.h>
7#include "opieaddressee.h"
8*/
9#include <stdio.h>
10#include "kabcaddressbookplugin.h"
11
12KABCAddressBookPlugin::KABCAddressBookPlugin() : ref(0) {
13
14//US access = new OContactAccess("OpieAddressBookPlugin");
15
16}
17
18KABC::Addressee::List KABCAddressBookPlugin::getAddressees() {
19 KABC::Addressee::List results;
20
21
22/*US
23 OContactAccess access("OpieAddressBookPlugin");
24 OContactAccess::List::Iterator it;
25 ORecordList<OContact> accessList = access.sorted(true,0,0,0);
26 for(it = accessList.begin(); it != accessList.end(); ++it ) {
27 OpieAddressee addressee( *it );
28 results.append(addressee);
29 }
30*/
31 qDebug("KABCAddressBookPlugin::getAddressees has to be implemented");
32
33 return results;
34}
35
36QString KABCAddressBookPlugin::name() {
37 return QString::QString("KABCAddressBookPlugin");
38}
39
40
41KABC::Addressee::List KABCAddressBookPlugin::findByEmail(const QString &email) {
42
43printf("KABCAddressBookPlugin::findByEmail: email=%s\n", email.ascii());
44 KABC::Addressee::List results;
45/*US
46
47 ORecordList<OContact> accessList = access->sorted(true,0,0,0);
48 OContactAccess::List::Iterator it;
49 for(it = accessList.begin(); it != accessList.end(); ++it ) {
50 OContact contact = *it;
51 QStringList emailList = contact.emailList();
52 QStringList foundEmails = emailList.grep(email,false);
53 if (foundEmails.count() >= 1) {
54 OpieAddressee a(contact);
55 printf("Found Contact %s\n", a.formattedName().ascii());
56 results.append(a);
57 }
58 }
59*/
60 qDebug("KABCAddressBookPlugin::findByEmail has to be implemented");
61
62 return results;
63
64}
65
66QRESULT KABCAddressBookPlugin::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
67{
68printf("Start: KABCAddressBookPlugin::queryInterface\n");
69 *iface = 0;
70 if ( uuid == IID_QUnknown )
71 *iface = this;
72 else if ( uuid == IID_KOAddressBookInterface )
73 *iface = this;
74 if ( *iface )
75 (*iface)->addRef();
76 return QS_OK;
77printf("End: KABCAddressBookPlugin::queryInterface\n");
78}
79
80Q_EXPORT_INTERFACE()
81{
82 Q_CREATE_INSTANCE( KABCAddressBookPlugin )
83}
84