From bb282009a5d37c77c9239d0e78950290f026d7a8 Mon Sep 17 00:00:00 2001 From: tille Date: Sat, 10 May 2003 16:51:45 +0000 Subject: applnk search --- (limited to 'core/pim/osearch/applnkitem.cpp') 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 , (C) 2003 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "applnkitem.h" + +#include + +AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) + : ResultItem(parent) +{ + _app = app; + setText(0, _app->name() ); +} + + +AppLnkItem::~AppLnkItem() +{ +} + + +QString AppLnkItem::toRichText() +{ + QString text; + text += "

"; + text += _app->name(); + text += "


"; + text += _app->comment(); + text += "

`"; + 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(); +} + -- cgit v0.9.0.2