summaryrefslogtreecommitdiff
path: root/core/pim/osearch/applnkitem.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnkitem.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp
new file mode 100644
index 0000000..f45ed68
--- a/dev/null
+++ b/core/pim/osearch/applnkitem.cpp
@@ -0,0 +1,54 @@
1//
2//
3// C++ Implementation: $MODULE$
4//
5// Description:
6//
7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9//
10// Copyright: See COPYING file that comes with this distribution
11//
12//
13#include "applnkitem.h"
14
15#include <qpe/applnk.h>
16
17AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app)
18 : ResultItem(parent)
19{
20 _app = app;
21 setText(0, _app->name() );
22}
23
24
25AppLnkItem::~AppLnkItem()
26{
27}
28
29
30QString AppLnkItem::toRichText()
31{
32 QString text;
33 text += "<b><h3>";
34 text += _app->name();
35 text += "</b></h3><br>";
36 text += _app->comment();
37 text += "<br><br>`";
38 text += _app->exec();
39 text += "`";
40 return text;
41}
42
43void AppLnkItem::editItem()
44{
45 _app->execute();
46}
47
48void AppLnkItem::showItem()
49{
50 /* QCopEnvelope e("QPE/Application/addressbook", "edit(int)");
51 e << _contact->uid();*/
52 ResultItem::showItem();
53}
54