summaryrefslogtreecommitdiffstats
path: root/kaddressbook/common/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/common/filter.h')
-rw-r--r--kaddressbook/common/filter.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kaddressbook/common/filter.h b/kaddressbook/common/filter.h
index 9251c5c17..9f66699e0 100644
--- a/kaddressbook/common/filter.h
+++ b/kaddressbook/common/filter.h
@@ -24,9 +24,9 @@
#ifndef FILTER_H
#define FILTER_H
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
#include <kabc/addressee.h>
#include <kconfig.h>
@@ -39,23 +39,23 @@
class Filter
{
public:
- typedef QValueList<Filter> List;
+ typedef TQValueList<Filter> List;
enum MatchRule { Matching = 0, NotMatching = 1 };
Filter();
- Filter( const QString& name );
+ Filter( const TQString& name );
~Filter();
/**
Set the name of the filter.
*/
- void setName( const QString &name );
+ void setName( const TQString &name );
/**
@return The name of the filter.
*/
- const QString &name() const;
+ const TQString &name() const;
/**
@return Whether the filter is an internal one.
@@ -92,12 +92,12 @@ class Filter
/**
Set the list of categories. This list is used to filter addressees.
*/
- void setCategories( const QStringList &list );
+ void setCategories( const TQStringList &list );
/**
@return The list of categories.
*/
- const QStringList &categories() const;
+ const TQStringList &categories() const;
/**
Saves the filter to the config file. The group should already be set.
@@ -118,7 +118,7 @@ class Filter
will be append for each filter saved.
@param list The list of filters to be saved.
*/
- static void save( KConfig *config, const QString &baseGroup, Filter::List &list );
+ static void save( KConfig *config, const TQString &baseGroup, Filter::List &list );
/**
Restores a list of filters from a config file.
@@ -128,7 +128,7 @@ class Filter
@return The list of filters.
*/
- static Filter::List restore( KConfig *config, const QString &baseGroup );
+ static Filter::List restore( KConfig *config, const TQString &baseGroup );
/**
Sets the filter rule. If the rule is Filter::Matching (default),
@@ -149,8 +149,8 @@ class Filter
bool isEmpty() const;
private:
- QString mName;
- QStringList mCategoryList;
+ TQString mName;
+ TQStringList mCategoryList;
MatchRule mMatchRule;
bool mEnabled;
bool mInternal;