author | eilers <eilers> | 2002-11-18 09:38:28 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-11-18 09:38:28 (UTC) |
commit | 8401def65aa4f19d91873bc57a3dcf25c358c490 (patch) (unidiff) | |
tree | 3e64bd2d1b6f92c77304cc2d2c0fd06b07d718e5 /core/pim/addressbook/ablabel.h | |
parent | 4d0773414a0fb59e53f30d4d2363f73304f474dc (diff) | |
download | opie-8401def65aa4f19d91873bc57a3dcf25c358c490.zip opie-8401def65aa4f19d91873bc57a3dcf25c358c490.tar.gz opie-8401def65aa4f19d91873bc57a3dcf25c358c490.tar.bz2 |
Back to main tree. Back to main tree.
Back to main tree. Waiting for moving to feature freeze ..
Diffstat (limited to 'core/pim/addressbook/ablabel.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/ablabel.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/core/pim/addressbook/ablabel.h b/core/pim/addressbook/ablabel.h index 9086c4a..b1e35de 100644 --- a/core/pim/addressbook/ablabel.h +++ b/core/pim/addressbook/ablabel.h | |||
@@ -23,6 +23,8 @@ | |||
23 | #include <opie/ocontact.h> | 23 | #include <opie/ocontact.h> |
24 | #include <qtextview.h> | 24 | #include <qtextview.h> |
25 | 25 | ||
26 | #include <opie/ocontactaccess.h> | ||
27 | |||
26 | class AbLabel : public QTextView | 28 | class AbLabel : public QTextView |
27 | { | 29 | { |
28 | Q_OBJECT | 30 | Q_OBJECT |
@@ -31,18 +33,30 @@ public: | |||
31 | AbLabel( QWidget *parent, const char *name = 0 ); | 33 | AbLabel( QWidget *parent, const char *name = 0 ); |
32 | ~AbLabel(); | 34 | ~AbLabel(); |
33 | 35 | ||
34 | public slots: | 36 | // Set the contacts |
35 | void init( const OContact &entry ); | 37 | void setContacts( const OContactAccess::List& viewList ); |
36 | void sync(); | 38 | |
39 | // Selects a contact | ||
40 | bool selectContact( int UID ); | ||
41 | |||
42 | // Get the UID of the current selected Entry | ||
43 | int currentEntry_UID(); | ||
44 | |||
45 | // | ||
46 | OContact currentEntry(); | ||
37 | 47 | ||
38 | signals: | 48 | signals: |
39 | void okPressed(); | 49 | void signalOkPressed(); |
40 | 50 | ||
41 | protected: | 51 | protected: |
52 | void sync(); | ||
42 | void keyPressEvent( QKeyEvent * ); | 53 | void keyPressEvent( QKeyEvent * ); |
43 | 54 | ||
44 | private: | 55 | private: |
45 | OContact ent; | 56 | OContactAccess::List m_viewList; |
57 | OContactAccess::List::Iterator m_itCurContact; | ||
58 | |||
59 | bool m_empty; | ||
46 | 60 | ||
47 | }; | 61 | }; |
48 | 62 | ||