-rw-r--r-- | core/pim/osearch/contactitem.cpp | 16 | ||||
-rw-r--r-- | core/pim/osearch/contactitem.h | 2 | ||||
-rw-r--r-- | core/pim/osearch/eventitem.cpp | 12 | ||||
-rw-r--r-- | core/pim/osearch/eventitem.h | 1 |
4 files changed, 30 insertions, 1 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 86879aa..a25ac23 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -15,2 +15,3 @@ | |||
15 | #include <opie/ocontact.h> | 15 | #include <opie/ocontact.h> |
16 | #include <qpe/qcopenvelope_qws.h> | ||
16 | 17 | ||
@@ -35 +36,16 @@ QString ContactItem::toRichText() | |||
35 | 36 | ||
37 | |||
38 | void ContactItem::editItem() | ||
39 | { | ||
40 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | ||
41 | //QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); | ||
42 | e << _contact->uid(); | ||
43 | } | ||
44 | |||
45 | void ContactItem::showItem() | ||
46 | { | ||
47 | QCopEnvelope e("QPE/Application/addressbook", "editEvent(int)"); | ||
48 | //QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); | ||
49 | e << _contact->uid(); | ||
50 | } | ||
51 | |||
diff --git a/core/pim/osearch/contactitem.h b/core/pim/osearch/contactitem.h index 3f2915c..431adef 100644 --- a/core/pim/osearch/contactitem.h +++ b/core/pim/osearch/contactitem.h | |||
@@ -30,2 +30,4 @@ public: | |||
30 | virtual QString toRichText(); | 30 | virtual QString toRichText(); |
31 | virtual void showItem(); | ||
32 | virtual void editItem(); | ||
31 | 33 | ||
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 | |||
@@ -4,3 +4,3 @@ | |||
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
@@ -14,2 +14,3 @@ | |||
14 | 14 | ||
15 | #include <qdatetime.h> | ||
15 | #include <qpe/qcopenvelope_qws.h> | 16 | #include <qpe/qcopenvelope_qws.h> |
@@ -40 +41,10 @@ void EventItem::editItem() | |||
40 | } | 41 | } |
42 | |||
43 | void 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 | |||
diff --git a/core/pim/osearch/eventitem.h b/core/pim/osearch/eventitem.h index c3483de..999f0ac 100644 --- a/core/pim/osearch/eventitem.h +++ b/core/pim/osearch/eventitem.h | |||
@@ -31,2 +31,3 @@ public: | |||
31 | virtual void editItem(); | 31 | virtual void editItem(); |
32 | virtual void showItem(); | ||
32 | 33 | ||