summaryrefslogtreecommitdiff
path: root/core/pim/osearch/eventitem.cpp
authortille <tille>2003-05-09 10:08:58 (UTC)
committer tille <tille>2003-05-09 10:08:58 (UTC)
commit49cc0e47343578c0dfe1294afdf574ebfc1f4f4b (patch) (unidiff)
tree7be8fab8d44c6d96256ca5e195198431efb28c4e /core/pim/osearch/eventitem.cpp
parentfd1f8bdfc8bad5a0344468118c66c6afe3044fde (diff)
downloadopie-49cc0e47343578c0dfe1294afdf574ebfc1f4f4b.zip
opie-49cc0e47343578c0dfe1294afdf574ebfc1f4f4b.tar.gz
opie-49cc0e47343578c0dfe1294afdf574ebfc1f4f4b.tar.bz2
datebook displays defaultview (or editor) for found day now (with patch)
addressbook (and todo) calls implemented, but not yet working
Diffstat (limited to 'core/pim/osearch/eventitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/eventitem.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp
index bf5b2b9..758ad85 100644
--- a/core/pim/osearch/eventitem.cpp
+++ b/core/pim/osearch/eventitem.cpp
@@ -1,20 +1,21 @@
1// 1//
2// 2//
3// C++ Implementation: $MODULE$ 3// C++ Implementation: $MODULE$
4// 4//
5// Description: 5// Description:
6// 6//
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "eventitem.h" 13#include "eventitem.h"
14 14
15#include <qdatetime.h>
15#include <qpe/qcopenvelope_qws.h> 16#include <qpe/qcopenvelope_qws.h>
16#include <opie/oevent.h> 17#include <opie/oevent.h>
17 18
18EventItem::EventItem(OListViewItem* parent, OEvent *event) 19EventItem::EventItem(OListViewItem* parent, OEvent *event)
19 : ResultItem(parent) 20 : ResultItem(parent)
20{ 21{
@@ -35,6 +36,15 @@ QString EventItem::toRichText()
35 36
36void EventItem::editItem() 37void EventItem::editItem()
37{ 38{
38 QCopEnvelope e("QPE/Application/datebook", "editEvent(int)"); 39 QCopEnvelope e("QPE/Application/datebook", "editEvent(int)");
39 e << _event->uid(); 40 e << _event->uid();
40} 41}
42
43void EventItem::showItem()
44{
45 QCopEnvelope e("QPE/Application/datebook", "viewDefault(QDate)");
46 QDate day = _event->startDateTime().date();
47 qDebug("sending view day %s",day.toString().latin1());
48 e << day;
49}
50