summaryrefslogtreecommitdiffstats
path: root/src/pattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern.h')
-rw-r--r--src/pattern.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/pattern.h b/src/pattern.h
index 8e17a69..fb4651f 100644
--- a/src/pattern.h
+++ b/src/pattern.h
@@ -26,9 +26,9 @@
#ifndef PATTERN_H
#define PATTERN_H
-#include <qregexp.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
/**
* Regular Expression adapted to the needs of kio-locate.
@@ -41,7 +41,7 @@ public:
* @param pattern the pattern to start with
* @param ignoreCase specifies, if the search should be case sensitive
*/
- LocateRegExp(const QString& pattern, bool ignoreCase = false);
+ LocateRegExp(const TQString& pattern, bool ignoreCase = false);
LocateRegExp();
virtual ~LocateRegExp();
@@ -50,7 +50,7 @@ public:
* Determines whether a file name is matching this regular expression.
* @param file the filename to match
*/
- virtual bool isMatching(const QString& file) const;
+ virtual bool isMatching(const TQString& file) const;
/**
* @return The position of the last match.
@@ -67,25 +67,25 @@ public:
* @param pattern the pattern to search for. It may be prepended by an
* exclamation mark, to invert its meaning.
*/
- virtual void setPattern(const QString& pattern);
+ virtual void setPattern(const TQString& pattern);
/**
* Get the pattern.
* @return search pattern
*/
- virtual QString getPattern() const;
+ virtual TQString getPattern() const;
private:
bool m_negated;
bool m_ignoreCase;
- QRegExp m_regExp;
- QString m_pattern;
+ TQRegExp m_regExp;
+ TQString m_pattern;
};
/**
* List of regular expressions
*/
-class LocateRegExpList: public QValueList<LocateRegExp>
+class LocateRegExpList: public TQValueList<LocateRegExp>
{
public:
virtual ~LocateRegExpList();
@@ -94,21 +94,21 @@ class LocateRegExpList: public QValueList<LocateRegExp>
* Converts a stringlist into a regexplist.
* @param list the stringlist to convert
*/
- LocateRegExpList& operator = (const QStringList& list);
+ LocateRegExpList& operator = (const TQStringList& list);
/**
* Determines whether a file name is matching at least one regular
* expression in the list.
* @param file the filename to match
*/
- virtual bool isMatchingOne(const QString& file) const;
+ virtual bool isMatchingOne(const TQString& file) const;
/**
* Determines whether a file name is matching all regular expressions
* in the list.
* @param file the filename to match
*/
- virtual bool isMatchingAll(const QString& file) const;
+ virtual bool isMatchingAll(const TQString& file) const;
};
#endif