summaryrefslogtreecommitdiffabout
path: root/kaddressbook/filter.h
Side-by-side diff
Diffstat (limited to 'kaddressbook/filter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/filter.h6
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
@@ -38,7 +38,10 @@
*/
class Filter
{
- public:
+ public:
+ enum { ShowPublic = 1, ShowPrivate = 2, ShowConfidential = 4};
+ void setCriteria(int c) { mCriteria = c ;}
+ int criteria() const { return mCriteria;}
typedef QValueList<Filter> List;
enum MatchRule { Matching = 0, NotMatching = 1 };
@@ -143,6 +146,7 @@ class Filter
MatchRule matchRule() const;
private:
+ int mCriteria;
QString mName;
QStringList mCategoryList;
MatchRule mMatchRule;