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(); +} + |