Diffstat (limited to 'core/pim/addressbook/abview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/addressbook/abview.h b/core/pim/addressbook/abview.h index 8570fe7..55c63cc 100644 --- a/core/pim/addressbook/abview.h +++ b/core/pim/addressbook/abview.h | |||
@@ -8,48 +8,49 @@ | |||
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 | 14 | ||
15 | class AbView: public QWidget | 15 | class AbView: public QWidget |
16 | { | 16 | { |
17 | Q_OBJECT | 17 | Q_OBJECT |
18 | 18 | ||
19 | public: | 19 | public: |
20 | enum Views{ TableView=0, CardView, PersonalView }; | 20 | enum Views{ TableView=0, CardView, PersonalView }; |
21 | 21 | ||
22 | AbView( QWidget* parent, const QValueList<int>& ordered ); | 22 | AbView( QWidget* parent, const QValueList<int>& ordered ); |
23 | ~AbView(); | 23 | ~AbView(); |
24 | 24 | ||
25 | bool save(); | 25 | bool save(); |
26 | void load(); | 26 | void load(); |
27 | void reload(); | 27 | void reload(); |
28 | void clear(); | 28 | void clear(); |
29 | 29 | ||
30 | void setView( Views view ); | 30 | void setView( Views view ); |
31 | void showPersonal( bool personal ); | 31 | void showPersonal( bool personal ); |
32 | void setCurrentUid( int uid ); | ||
32 | void setShowByCategory( const QString& cat ); | 33 | void setShowByCategory( const QString& cat ); |
33 | void setShowToView( Views view ); | 34 | void setShowToView( Views view ); |
34 | void setShowByLetter( char c ); | 35 | void setShowByLetter( char c ); |
35 | void setListOrder( const QValueList<int>& ordered ); | 36 | void setListOrder( const QValueList<int>& ordered ); |
36 | 37 | ||
37 | // Add Entry and put to current | 38 | // Add Entry and put to current |
38 | void addEntry( const OContact &newContact ); | 39 | void addEntry( const OContact &newContact ); |
39 | void removeEntry( const int UID ); | 40 | void removeEntry( const int UID ); |
40 | void replaceEntry( const OContact &contact ); | 41 | void replaceEntry( const OContact &contact ); |
41 | OContact currentEntry(); | 42 | OContact currentEntry(); |
42 | 43 | ||
43 | void inSearch() { m_inSearch = true; } | 44 | void inSearch() { m_inSearch = true; } |
44 | void offSearch(); | 45 | void offSearch(); |
45 | 46 | ||
46 | QString showCategory() const; | 47 | QString showCategory() const; |
47 | QStringList categories(); | 48 | QStringList categories(); |
48 | 49 | ||
49 | signals: | 50 | signals: |
50 | void signalNotFound(); | 51 | void signalNotFound(); |
51 | void signalClearLetterPicker(); | 52 | void signalClearLetterPicker(); |
52 | void signalViewSwitched ( int ); | 53 | void signalViewSwitched ( int ); |
53 | 54 | ||
54 | public slots: | 55 | public slots: |
55 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | 56 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, |