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 | |||
@@ -24,4 +24,6 @@ | |||
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 | { |
@@ -32,16 +34,28 @@ public: | |||
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 | }; |