From 8401def65aa4f19d91873bc57a3dcf25c358c490 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 18 Nov 2002 09:38:28 +0000 Subject: Back to main tree. Back to main tree. Back to main tree. Waiting for moving to feature freeze .. --- (limited to 'core/pim/addressbook/abview.h') diff --git a/core/pim/addressbook/abview.h b/core/pim/addressbook/abview.h index 4d35338..201b521 100644 --- a/core/pim/addressbook/abview.h +++ b/core/pim/addressbook/abview.h @@ -17,9 +17,10 @@ class AbView: public QWidget Q_OBJECT public: - enum Views{ TableView=0, CardView, PhoneBook, CompanyBook, EmailBook }; + enum Views{ TableView=0, CardView, PersonalView }; - AbView( QWidget* parent, const QValueList& ordered, const QStringList& slOrderedFields ); + AbView( QWidget* parent, const QValueList& ordered ); + ~AbView(); bool save(); void load(); @@ -27,9 +28,11 @@ public: void clear(); void setView( Views view ); - void showContact( const OContact& cnt ); + void showPersonal( bool personal ); void setShowByCategory( Views view, const QString& cat ); void setShowByLetter( char c ); + void setListOrder( const QValueList& ordered ); + // Add Entry and put to current void addEntry( const OContact &newContact ); void removeEntry( const int UID ); @@ -53,6 +56,7 @@ public slots: void slotSwitch(); private: + void updateListinViews(); void updateView(); void clearForCategory(); bool contactCompare( const OContact &cnt, int category ); @@ -61,12 +65,14 @@ private: Categories mCat; bool m_inSearch; + bool m_inPersonal; int m_curr_category; Views m_curr_View; Views m_prev_View; int m_curr_Contact; - OContactAccess m_contactdb; + OContactAccess* m_contactdb; + OContactAccess* m_storedDB; OContactAccess::List m_list; QWidgetStack* m_viewStack; @@ -74,7 +80,6 @@ private: AbLabel* m_ablabel; QValueList m_orderedFields; - QStringList m_slOrderedFields; }; -- cgit v0.9.0.2