-rw-r--r-- | core/pim/osearch/contactitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index a25ac23..29d81be 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -1,51 +1,51 @@ | |||
1 | // | 1 | // |
2 | // | 2 | // |
3 | // C++ Implementation: $MODULE$ | 3 | // C++ Implementation: $MODULE$ |
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
7 | // | 7 | // |
8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 | 8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 |
9 | // | 9 | // |
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 | #include <qpe/qcopenvelope_qws.h> |
17 | 17 | ||
18 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) | 18 | ContactItem::ContactItem(OListViewItem* parent, OContact *contact) |
19 | : ResultItem(parent) | 19 | : ResultItem(parent) |
20 | { | 20 | { |
21 | _contact = contact; | 21 | _contact = contact; |
22 | setText(0, _contact->toShortText()); | 22 | setText(0, _contact->toShortText()); |
23 | } | 23 | } |
24 | 24 | ||
25 | 25 | ||
26 | ContactItem::~ContactItem() | 26 | ContactItem::~ContactItem() |
27 | { | 27 | { |
28 | delete _contact; | 28 | delete _contact; |
29 | } | 29 | } |
30 | 30 | ||
31 | 31 | ||
32 | QString ContactItem::toRichText() | 32 | QString ContactItem::toRichText() |
33 | { | 33 | { |
34 | return _contact->toRichText(); | 34 | return _contact->toRichText(); |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | void ContactItem::editItem() | 38 | void ContactItem::editItem() |
39 | { | 39 | { |
40 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | 40 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); |
41 | //QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); | 41 | //QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); |
42 | e << _contact->uid(); | 42 | e << _contact->uid(); |
43 | } | 43 | } |
44 | 44 | ||
45 | void ContactItem::showItem() | 45 | void ContactItem::showItem() |
46 | { | 46 | { |
47 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | 47 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); |
48 | //QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); | 48 | //QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); |
49 | e << _contact->uid(); | 49 | e << _contact->uid(); |
50 | } | 50 | } |
51 | 51 | ||