summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/ablabel.h
authoreilers <eilers>2002-11-18 09:38:28 (UTC)
committer eilers <eilers>2002-11-18 09:38:28 (UTC)
commit8401def65aa4f19d91873bc57a3dcf25c358c490 (patch) (side-by-side diff)
tree3e64bd2d1b6f92c77304cc2d2c0fd06b07d718e5 /core/pim/addressbook/ablabel.h
parent4d0773414a0fb59e53f30d4d2363f73304f474dc (diff)
downloadopie-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.h24
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
@@ -20,31 +20,45 @@
#ifndef ABLABEL_H
#define ABLABEL_H
#include <opie/ocontact.h>
#include <qtextview.h>
+#include <opie/ocontactaccess.h>
+
class AbLabel : public QTextView
{
Q_OBJECT
public:
AbLabel( QWidget *parent, const char *name = 0 );
~AbLabel();
-public slots:
- void init( const OContact &entry );
- void sync();
+ // Set the contacts
+ void setContacts( const OContactAccess::List& viewList );
+
+ // Selects a contact
+ bool selectContact( int UID );
+
+ // Get the UID of the current selected Entry
+ int currentEntry_UID();
+
+ //
+ OContact currentEntry();
signals:
- void okPressed();
+ void signalOkPressed();
protected:
+ void sync();
void keyPressEvent( QKeyEvent * );
private:
- OContact ent;
+ OContactAccess::List m_viewList;
+ OContactAccess::List::Iterator m_itCurContact;
+
+ bool m_empty;
};
#endif // ABLABEL_H