28 #include <tqstringlist.h>
29 #include <tqvaluelist.h>
31 #include <tdeabc/addressee.h>
32 #include <tdeconfig.h>
42 typedef TQValueList<Filter> List;
44 enum MatchRule { Matching = 0, NotMatching = 1 };
58 const TQString &
name()
const;
72 void apply( TDEABC::Addressee::List &addresseeList );
105 void save( TDEConfig *config );
110 void restore( TDEConfig *config );
121 static void save( TDEConfig *config,
const TQString &baseGroup, Filter::List &list );
131 static Filter::List
restore( TDEConfig *config,
const TQString &baseGroup );
153 TQStringList mCategoryList;
154 MatchRule mMatchRule;
Filter for AddressBook related objects (Addressees)
MatchRule matchRule() const
void setName(const TQString &name)
Set the name of the filter.
void restore(TDEConfig *config)
Loads the filter from the config file.
void setEnabled(bool on)
Enable or disable the filter.
const TQStringList & categories() const
void setCategories(const TQStringList &list)
Set the list of categories.
bool filterAddressee(const TDEABC::Addressee &a) const
Apply the filter to the addressee.
void save(TDEConfig *config)
Saves the filter to the config file.
const TQString & name() const
void apply(TDEABC::Addressee::List &addresseeList)
Apply the filter to the addressee list.
void setMatchRule(MatchRule rule)
Sets the filter rule.