summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abview.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/abview.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/abview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abview.h15
1 files changed, 10 insertions, 5 deletions
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
@@ -14,25 +14,28 @@
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<int>& ordered, const QStringList& slOrderedFields );
+ AbView( QWidget* parent, const QValueList<int>& ordered );
+ ~AbView();
bool save();
void load();
void reload();
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<int>& ordered );
+
// Add Entry and put to current
void addEntry( const OContact &newContact );
void removeEntry( const int UID );
void replaceEntry( const OContact &contact );
OContact currentEntry();
@@ -50,32 +53,34 @@ signals:
public slots:
void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
bool backwards, QString category = QString::null );
void slotSwitch();
private:
+ void updateListinViews();
void updateView();
void clearForCategory();
bool contactCompare( const OContact &cnt, int category );
void parseName( const QString& name, QString *first, QString *middle,
QString * last );
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;
AbTable* m_abTable;
AbLabel* m_ablabel;
QValueList<int> m_orderedFields;
- QStringList m_slOrderedFields;
};
#endif