author | tille <tille> | 2003-05-10 17:58:10 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-10 17:58:10 (UTC) |
commit | b7d34545193f39c146ab56b1127863279a3121ce (patch) (unidiff) | |
tree | bd0d550af05c14689c5b527da0c5e8ae0e11ce7a /core/pim/osearch/doclnkitem.cpp | |
parent | 797a10cb009d58366d8eb3e792e350f87be4d100 (diff) | |
download | opie-b7d34545193f39c146ab56b1127863279a3121ce.zip opie-b7d34545193f39c146ab56b1127863279a3121ce.tar.gz opie-b7d34545193f39c146ab56b1127863279a3121ce.tar.bz2 |
and doclnk search
Diffstat (limited to 'core/pim/osearch/doclnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp new file mode 100644 index 0000000..fd19727 --- a/dev/null +++ b/core/pim/osearch/doclnkitem.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 "doclnkitem.h" | ||
14 | |||
15 | #include <qpe/applnk.h> | ||
16 | |||
17 | DocLnkItem::DocLnkItem(OListViewItem* parent, DocLnk *app) | ||
18 | : ResultItem(parent) | ||
19 | { | ||
20 | _doc = app; | ||
21 | setText(0, _doc->name() ); | ||
22 | } | ||
23 | |||
24 | |||
25 | DocLnkItem::~DocLnkItem() | ||
26 | { | ||
27 | } | ||
28 | |||
29 | |||
30 | QString DocLnkItem::toRichText() | ||
31 | { | ||
32 | QString text; | ||
33 | text += "<b><h3>"; | ||
34 | text += _doc->name(); | ||
35 | text += "</b></h3><br>"; | ||
36 | text += _doc->comment(); | ||
37 | text += "<br><br>`"; | ||
38 | text += _doc->exec(); | ||
39 | text += "`"; | ||
40 | return text; | ||
41 | } | ||
42 | |||
43 | void DocLnkItem::editItem() | ||
44 | { | ||
45 | _doc->execute(); | ||
46 | } | ||
47 | |||
48 | void DocLnkItem::showItem() | ||
49 | { | ||
50 | /* QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | ||
51 | e << _contact->uid();*/ | ||
52 | ResultItem::showItem(); | ||
53 | } | ||
54 | |||