Diffstat (limited to 'core/pim/addressbook/abview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/addressbook/abview.h b/core/pim/addressbook/abview.h index 55c63cc..49bb4be 100644 --- a/core/pim/addressbook/abview.h +++ b/core/pim/addressbook/abview.h | |||
@@ -2,46 +2,47 @@ | |||
2 | #define _ABVIEW_H_ | 2 | #define _ABVIEW_H_ |
3 | 3 | ||
4 | #include <qwidget.h> | 4 | #include <qwidget.h> |
5 | #include <qwidgetstack.h> | 5 | #include <qwidgetstack.h> |
6 | 6 | ||
7 | #include <qpe/categories.h> | 7 | #include <qpe/categories.h> |
8 | #include <opie/ocontact.h> | 8 | #include <opie/ocontact.h> |
9 | #include <opie/ocontactaccess.h> | 9 | #include <opie/ocontactaccess.h> |
10 | 10 | ||
11 | #include "contacteditor.h" | 11 | #include "contacteditor.h" |
12 | #include "abtable.h" | 12 | #include "abtable.h" |
13 | #include "ablabel.h" | 13 | #include "ablabel.h" |
14 | #include "abconfig.h" | ||
14 | 15 | ||
15 | class AbView: public QWidget | 16 | class AbView: public QWidget |
16 | { | 17 | { |
17 | Q_OBJECT | 18 | Q_OBJECT |
18 | 19 | ||
19 | public: | 20 | public: |
20 | enum Views{ TableView=0, CardView, PersonalView }; | 21 | enum Views{ TableView=0, CardView, PersonalView }; |
21 | 22 | ||
22 | AbView( QWidget* parent, const QValueList<int>& ordered ); | 23 | AbView( QWidget* parent, const QValueList<int>& ordered ); |
23 | ~AbView(); | 24 | ~AbView(); |
24 | 25 | ||
25 | bool save(); | 26 | bool save(); |
26 | void load(); | 27 | void load(); |
27 | void reload(); | 28 | void reload(); |
28 | void clear(); | 29 | void clear(); |
29 | 30 | ||
30 | void setView( Views view ); | 31 | void setView( Views view ); |
31 | void showPersonal( bool personal ); | 32 | void showPersonal( bool personal ); |
32 | void setCurrentUid( int uid ); | 33 | void setCurrentUid( int uid ); |
33 | void setShowByCategory( const QString& cat ); | 34 | void setShowByCategory( const QString& cat ); |
34 | void setShowToView( Views view ); | 35 | void setShowToView( Views view ); |
35 | void setShowByLetter( char c ); | 36 | void setShowByLetter( char c, AbConfig::LPSearchMode mode = AbConfig::LastName ); |
36 | void setListOrder( const QValueList<int>& ordered ); | 37 | void setListOrder( const QValueList<int>& ordered ); |
37 | 38 | ||
38 | // Add Entry and put to current | 39 | // Add Entry and put to current |
39 | void addEntry( const OContact &newContact ); | 40 | void addEntry( const OContact &newContact ); |
40 | void removeEntry( const int UID ); | 41 | void removeEntry( const int UID ); |
41 | void replaceEntry( const OContact &contact ); | 42 | void replaceEntry( const OContact &contact ); |
42 | OContact currentEntry(); | 43 | OContact currentEntry(); |
43 | 44 | ||
44 | void inSearch() { m_inSearch = true; } | 45 | void inSearch() { m_inSearch = true; } |
45 | void offSearch(); | 46 | void offSearch(); |
46 | 47 | ||
47 | QString showCategory() const; | 48 | QString showCategory() const; |