Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (show 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 | |||
@@ -10,12 +10,13 @@ | |||
10 | // Copyright: See COPYING file that comes with this distribution | 10 | // Copyright: See COPYING file that comes with this distribution |
11 | // | 11 | // |
12 | // | 12 | // |
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) |
19 | { | 20 | { |
20 | _contact = contact; | 21 | _contact = contact; |
21 | setText(0, _contact->toShortText()); | 22 | setText(0, _contact->toShortText()); |
@@ -30,6 +31,21 @@ ContactItem::~ContactItem() | |||
30 | 31 | ||
31 | QString ContactItem::toRichText() | 32 | QString ContactItem::toRichText() |
32 | { | 33 | { |
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 | |||