-rw-r--r-- | kaddressbook/filter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kaddressbook/filter.h b/kaddressbook/filter.h index cf2c0a1..26870d7 100644 --- a/kaddressbook/filter.h +++ b/kaddressbook/filter.h | |||
@@ -35,13 +35,16 @@ | |||
35 | Filter for AddressBook related objects (Addressees) | 35 | Filter for AddressBook related objects (Addressees) |
36 | 36 | ||
37 | @todo This class should be switched to use shared data. | 37 | @todo This class should be switched to use shared data. |
38 | */ | 38 | */ |
39 | class Filter | 39 | class Filter |
40 | { | 40 | { |
41 | public: | 41 | public: |
42 | enum { ShowPublic = 1, ShowPrivate = 2, ShowConfidential = 4}; | ||
43 | void setCriteria(int c) { mCriteria = c ;} | ||
44 | int criteria() const { return mCriteria;} | ||
42 | typedef QValueList<Filter> List; | 45 | typedef QValueList<Filter> List; |
43 | 46 | ||
44 | enum MatchRule { Matching = 0, NotMatching = 1 }; | 47 | enum MatchRule { Matching = 0, NotMatching = 1 }; |
45 | 48 | ||
46 | Filter(); | 49 | Filter(); |
47 | Filter( const QString& name ); | 50 | Filter( const QString& name ); |
@@ -140,12 +143,13 @@ class Filter | |||
140 | 143 | ||
141 | /** @return The current match rule. | 144 | /** @return The current match rule. |
142 | */ | 145 | */ |
143 | MatchRule matchRule() const; | 146 | MatchRule matchRule() const; |
144 | 147 | ||
145 | private: | 148 | private: |
149 | int mCriteria; | ||
146 | QString mName; | 150 | QString mName; |
147 | QStringList mCategoryList; | 151 | QStringList mCategoryList; |
148 | MatchRule mMatchRule; | 152 | MatchRule mMatchRule; |
149 | bool mEnabled; | 153 | bool mEnabled; |
150 | bool mInternal; | 154 | bool mInternal; |
151 | }; | 155 | }; |