author | tille <tille> | 2003-05-10 16:51:45 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-10 16:51:45 (UTC) |
commit | bb282009a5d37c77c9239d0e78950290f026d7a8 (patch) (side-by-side diff) | |
tree | f77f8299f6cb4393d98e005963b116bab6a27989 /core/pim/osearch/applnkitem.cpp | |
parent | 2a37284ab7ea4a29b6e55a84445ad5b2e3d6739b (diff) | |
download | opie-bb282009a5d37c77c9239d0e78950290f026d7a8.zip opie-bb282009a5d37c77c9239d0e78950290f026d7a8.tar.gz opie-bb282009a5d37c77c9239d0e78950290f026d7a8.tar.bz2 |
applnk search
Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 54 |
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 @@ +// +// +// C++ Implementation: $MODULE$ +// +// Description: +// +// +// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "applnkitem.h" + +#include <qpe/applnk.h> + +AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) + : ResultItem(parent) +{ + _app = app; + setText(0, _app->name() ); +} + + +AppLnkItem::~AppLnkItem() +{ +} + + +QString AppLnkItem::toRichText() +{ + QString text; + text += "<b><h3>"; + text += _app->name(); + text += "</b></h3><br>"; + text += _app->comment(); + text += "<br><br>`"; + text += _app->exec(); + text += "`"; + return text; +} + +void AppLnkItem::editItem() +{ + _app->execute(); +} + +void AppLnkItem::showItem() +{ +/* QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); + e << _contact->uid();*/ + ResultItem::showItem(); +} + |