Diffstat (limited to 'core/pim/addressbook/abconfig.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abconfig.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/pim/addressbook/abconfig.h b/core/pim/addressbook/abconfig.h index ce51b4c..93764f2 100644 --- a/core/pim/addressbook/abconfig.h +++ b/core/pim/addressbook/abconfig.h | |||
@@ -1,58 +1,69 @@ | |||
1 | #ifndef _ABCONFIG_H_ | 1 | #ifndef _ABCONFIG_H_ |
2 | #define _ABCONFIG_H_ | 2 | #define _ABCONFIG_H_ |
3 | 3 | ||
4 | #include <qstringlist.h> | 4 | #include <qstringlist.h> |
5 | #include <qmainwindow.h> | 5 | #include <qmainwindow.h> |
6 | 6 | ||
7 | class AbConfig | 7 | class AbConfig |
8 | { | 8 | { |
9 | public: | 9 | public: |
10 | enum LPSearchMode{ | ||
11 | LastName = 0, | ||
12 | FullName, | ||
13 | LASTELEMENT | ||
14 | }; | ||
15 | |||
16 | |||
17 | |||
10 | AbConfig(); | 18 | AbConfig(); |
11 | ~AbConfig(); | 19 | ~AbConfig(); |
12 | 20 | ||
13 | // Search Settings | 21 | // Search Settings |
14 | bool useRegExp() const; | 22 | bool useRegExp() const; |
15 | bool useWildCards() const; | 23 | bool useWildCards() const; |
16 | bool beCaseSensitive() const; | 24 | bool beCaseSensitive() const; |
17 | bool useQtMail() const; | 25 | bool useQtMail() const; |
18 | bool useOpieMail() const; | 26 | bool useOpieMail() const; |
19 | int fontSize() const; | 27 | int fontSize() const; |
20 | QValueList<int> orderList() const; | 28 | QValueList<int> orderList() const; |
21 | QMainWindow::ToolBarDock getToolBarPos() const; | 29 | QMainWindow::ToolBarDock getToolBarPos() const; |
22 | bool fixedBars() const; | 30 | bool fixedBars() const; |
31 | LPSearchMode letterPickerSearch() const; | ||
23 | 32 | ||
24 | void setUseRegExp( bool v ); | 33 | void setUseRegExp( bool v ); |
25 | void setUseWildCards( bool v ); | 34 | void setUseWildCards( bool v ); |
26 | void setBeCaseSensitive( bool v ); | 35 | void setBeCaseSensitive( bool v ); |
27 | void setUseQtMail( bool v ); | 36 | void setUseQtMail( bool v ); |
28 | void setUseOpieMail( bool v ); | 37 | void setUseOpieMail( bool v ); |
29 | void setFontSize( int v ); | 38 | void setFontSize( int v ); |
30 | void setOrderList( const QValueList<int>& list ); | 39 | void setOrderList( const QValueList<int>& list ); |
31 | void setToolBarDock( const QMainWindow::ToolBarDock v ); | 40 | void setToolBarDock( const QMainWindow::ToolBarDock v ); |
32 | void setFixedBars( const bool fixed ); | 41 | void setFixedBars( const bool fixed ); |
42 | void setLetterPickerSearch( const LPSearchMode mode ); | ||
33 | 43 | ||
34 | void operator= ( const AbConfig& cnf ); | 44 | void operator= ( const AbConfig& cnf ); |
35 | 45 | ||
36 | void load(); | 46 | void load(); |
37 | void save(); | 47 | void save(); |
38 | 48 | ||
39 | protected: | 49 | protected: |
40 | /* virtual void itemUp(); */ | 50 | /* virtual void itemUp(); */ |
41 | /* virtual void itemDown(); */ | 51 | /* virtual void itemDown(); */ |
42 | 52 | ||
43 | QStringList contFields; | 53 | QStringList contFields; |
44 | 54 | ||
45 | bool m_useQtMail; | 55 | bool m_useQtMail; |
46 | bool m_useOpieMail; | 56 | bool m_useOpieMail; |
47 | bool m_useRegExp; | 57 | bool m_useRegExp; |
48 | bool m_beCaseSensitive; | 58 | bool m_beCaseSensitive; |
49 | int m_fontSize; | 59 | int m_fontSize; |
50 | QValueList<int> m_ordered; | 60 | QValueList<int> m_ordered; |
51 | int m_barPos; | 61 | int m_barPos; |
52 | bool m_fixedBars; | 62 | bool m_fixedBars; |
63 | int m_lpSearchMode; | ||
53 | 64 | ||
54 | bool m_changed; | 65 | bool m_changed; |
55 | }; | 66 | }; |
56 | 67 | ||
57 | 68 | ||
58 | #endif | 69 | #endif |