summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abview.h
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abview.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/core/pim/addressbook/abview.h b/core/pim/addressbook/abview.h
index 49bb4be..b8c8a08 100644
--- a/core/pim/addressbook/abview.h
+++ b/core/pim/addressbook/abview.h
@@ -1,13 +1,14 @@
#ifndef _ABVIEW_H_
#define _ABVIEW_H_
-#include <qwidget.h>
-#include <qwidgetstack.h>
+#include <opie2/opimcontact.h>
+#include <opie2/ocontactaccess.h>
#include <qpe/categories.h>
-#include <opie/ocontact.h>
-#include <opie/ocontactaccess.h>
+
+#include <qwidget.h>
+#include <qwidgetstack.h>
#include "contacteditor.h"
#include "abtable.h"
#include "ablabel.h"
@@ -36,12 +37,12 @@ public:
void setShowByLetter( char c, AbConfig::LPSearchMode mode = AbConfig::LastName );
void setListOrder( const QValueList<int>& ordered );
// Add Entry and put to current
- void addEntry( const OContact &newContact );
+ void addEntry( const Opie::OPimContact &newContact );
void removeEntry( const int UID );
- void replaceEntry( const OContact &contact );
- OContact currentEntry();
+ void replaceEntry( const Opie::OPimContact &contact );
+ Opie::OPimContact currentEntry();
void inSearch() { m_inSearch = true; }
void offSearch();
@@ -53,17 +54,17 @@ signals:
void signalClearLetterPicker();
void signalViewSwitched ( int );
public slots:
- void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
+ void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
bool backwards, QString category = QString::null );
- void slotSwitch();
+ void slotSwitch();
private:
void updateListinViews();
- void updateView( bool newdata = false );
+ void updateView( bool newdata = false );
void clearForCategory();
- bool contactCompare( const OContact &cnt, int category );
+ bool contactCompare( const Opie::OPimContact &cnt, int category );
void parseName( const QString& name, QString *first, QString *middle,
QString * last );
Categories mCat;
@@ -72,12 +73,12 @@ private:
int m_curr_category;
Views m_curr_View;
Views m_prev_View;
int m_curr_Contact;
-
- OContactAccess* m_contactdb;
- OContactAccess* m_storedDB;
- OContactAccess::List m_list;
+
+ Opie::OPimContactAccess* m_contactdb;
+ Opie::OPimContactAccess* m_storedDB;
+ Opie::OPimContactAccess::List m_list;
QWidgetStack* m_viewStack;
AbTable* m_abTable;
AbLabel* m_ablabel;