Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 86879aa..a25ac23 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -13,6 +13,7 @@ | |||
13 | #include "contactitem.h" | 13 | #include "contactitem.h" |
14 | 14 | ||
15 | #include <opie/ocontact.h> | 15 | #include <opie/ocontact.h> |
16 | #include <qpe/qcopenvelope_qws.h> | ||
16 | 17 | ||
17 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) | 18 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) |
18 | : ResultItem(parent) | 19 | : ResultItem(parent) |
@@ -33,3 +34,18 @@ QString ContactItem::toRichText() | |||
33 | return _contact->toRichText(); | 34 | return _contact->toRichText(); |
34 | } | 35 | } |
35 | 36 | ||
37 | |||
38 | void ContactItem::editItem() | ||
39 | { | ||
40 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | ||
41 | //QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); | ||
42 | e << _contact->uid(); | ||
43 | } | ||
44 | |||
45 | void ContactItem::showItem() | ||
46 | { | ||
47 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | ||
48 | //QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); | ||
49 | e << _contact->uid(); | ||
50 | } | ||
51 | |||