author | tille <tille> | 2003-05-11 19:19:30 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-11 19:19:30 (UTC) |
commit | 43c18630840a98aed8deb96b454957c40f0a4344 (patch) (unidiff) | |
tree | 60e5b68d1d172c77560d5af7bea83e81be7144a6 /core/pim/osearch/contactitem.cpp | |
parent | 38dc2fd6258f11ba0507c7bd8f8dfd5b39bc0df5 (diff) | |
download | opie-43c18630840a98aed8deb96b454957c40f0a4344.zip opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.gz opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.bz2 |
improved applnk and doclnk searching
clean up:
- mainwindow: handling of searchgroups
- searchgroups: introduced load, search and insertItem functions
- flexible actions handling
- doclnksearch inherits applnksearch
Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 788a415..7d8ecf1 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -2,7 +2,7 @@ | |||
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 |
@@ -34,18 +34,23 @@ QString ContactItem::toRichText() | |||
34 | return _contact->toRichText(); | 34 | return _contact->toRichText(); |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | void ContactItem::action( int act ) | |
38 | void ContactItem::editItem() | ||
39 | { | 38 | { |
40 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | 39 | if (act == 0){ |
41 | //QCopEnvelope e("QPE/Addressbook", "edit(int)"); | 40 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); |
42 | e << _contact->uid(); | 41 | e << _contact->uid(); |
42 | }else if(act == 1){ | ||
43 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | ||
44 | e << _contact->uid(); | ||
43 | } | 45 | } |
44 | 46 | ||
45 | void ContactItem::showItem() | ||
46 | { | ||
47 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); | ||
48 | //QCopEnvelope e("QPE/Addressbook", "show(int)"); | ||
49 | e << _contact->uid(); | ||
50 | } | 47 | } |
51 | 48 | ||
49 | QIntDict<QString> ContactItem::actions() | ||
50 | { | ||
51 | QIntDict<QString> result; | ||
52 | result.insert( 0, new QString( QObject::tr("show") ) ); | ||
53 | result.insert( 1, new QString( QObject::tr("edit") ) ); | ||
54 | return result; | ||
55 | |||
56 | } | ||