summaryrefslogtreecommitdiffstats
path: root/kmail/kmsearchpattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmsearchpattern.h')
-rw-r--r--kmail/kmsearchpattern.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/kmail/kmsearchpattern.h b/kmail/kmsearchpattern.h
index bb9a9600d..00a26c7b4 100644
--- a/kmail/kmsearchpattern.h
+++ b/kmail/kmsearchpattern.h
@@ -7,9 +7,9 @@
#define _kmsearchpattern_h_
#include <klocale.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qcstring.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqcstring.h>
#include "kmmsgbase.h" // for KMMsgStatus
class KMMessage;
@@ -47,21 +47,21 @@ public:
FuncIsInAddressbook, FuncIsNotInAddressbook,
FuncIsInCategory, FuncIsNotInCategory,
FuncHasAttachment, FuncHasNoAttachment};
- KMSearchRule ( const QCString & field=0, Function=FuncContains,
- const QString &contents=QString::null );
+ KMSearchRule ( const TQCString & field=0, Function=FuncContains,
+ const TQString &contents=TQString::null );
KMSearchRule ( const KMSearchRule &other );
const KMSearchRule & operator=( const KMSearchRule & other );
/** Create a search rule of a certain type by instantiating the appro-
priate subclass depending on the @p field. */
- static KMSearchRule* createInstance( const QCString & field=0,
+ static KMSearchRule* createInstance( const TQCString & field=0,
Function function=FuncContains,
- const QString & contents=QString::null );
+ const TQString & contents=TQString::null );
- static KMSearchRule* createInstance( const QCString & field,
+ static KMSearchRule* createInstance( const TQCString & field,
const char * function,
- const QString & contents );
+ const TQString & contents );
static KMSearchRule * createInstance( const KMSearchRule & other );
@@ -123,28 +123,28 @@ public:
@li \<age in days\>: Try to match against age of message (numerical).
@li \<status\>: Try to match against status of message (status).
*/
- QCString field() const { return mField; }
+ TQCString field() const { return mField; }
/** Set message header field name (make sure there's no trailing
colon ':') */
- void setField( const QCString & field ) { mField = field; }
+ void setField( const TQCString & field ) { mField = field; }
/** Return the value. This can be either a substring to search for in
or a regexp pattern to match against the header. */
- QString contents() const { return mContents; }
+ TQString contents() const { return mContents; }
/** Set the value. */
- void setContents( const QString & aContents ) { mContents = aContents; }
+ void setContents( const TQString & aContents ) { mContents = aContents; }
/** Returns the rule as string. For debugging.*/
- const QString asString() const;
+ const TQString asString() const;
private:
static Function configValueToFunc( const char * str );
- static QString functionToString( Function function );
+ static TQString functionToString( Function function );
- QCString mField;
+ TQCString mField;
Function mFunction;
- QString mContents;
+ TQString mContents;
};
@@ -159,8 +159,8 @@ private:
class KMSearchRuleString : public KMSearchRule
{
public:
- KMSearchRuleString( const QCString & field=0, Function function=FuncContains,
- const QString & contents=QString::null );
+ KMSearchRuleString( const TQCString & field=0, Function function=FuncContains,
+ const TQString & contents=TQString::null );
KMSearchRuleString( const KMSearchRuleString & other );
const KMSearchRuleString & operator=( const KMSearchRuleString & other );
@@ -178,7 +178,7 @@ public:
int headerLen=-1 ) const;
/** Helper for the main matches() method. Does the actual comparing. */
- bool matchesInternal( const QString & msgContents ) const;
+ bool matchesInternal( const TQString & msgContents ) const;
private:
const DwBoyerMoore *mBmHeaderField;
@@ -194,15 +194,15 @@ private:
class KMSearchRuleNumerical : public KMSearchRule
{
public:
- KMSearchRuleNumerical( const QCString & field=0, Function function=FuncContains,
- const QString & contents=QString::null );
+ KMSearchRuleNumerical( const TQCString & field=0, Function function=FuncContains,
+ const TQString & contents=TQString::null );
virtual bool isEmpty() const ;
virtual bool matches( const KMMessage * msg ) const;
/** Helper for the main matches() method. Does the actual comparing. */
bool matchesInternal( long numericalValue, long numericalMsgContents,
- const QString & msgContents ) const;
+ const TQString & msgContents ) const;
};
@@ -268,8 +268,8 @@ namespace KMail {
class KMSearchRuleStatus : public KMSearchRule
{
public:
- KMSearchRuleStatus( const QCString & field=0, Function function=FuncContains,
- const QString & contents=QString::null );
+ KMSearchRuleStatus( const TQCString & field=0, Function function=FuncContains,
+ const TQString & contents=TQString::null );
KMSearchRuleStatus( int status, Function function=FuncContains );
virtual bool isEmpty() const ;
@@ -278,7 +278,7 @@ public:
virtual bool matches( const DwString &, KMMessage &,
const DwBoyerMoore *,
int ) const;
- static KMMsgStatus statusFromEnglishName(const QString&);
+ static KMMsgStatus statusFromEnglishName(const TQString&);
private:
KMMsgStatus mStatus;
};
@@ -291,19 +291,19 @@ public:
KConfig group and there is a constructor, mainly used by KMFilter
to initialize from a preset KConfig-Group.
- From a class hierarchy point of view, it is a QPtrList of
+ From a class hierarchy point of view, it is a TQPtrList of
KMSearchRule's that adds the boolean operators (see Operator)
'and' and 'or' that connect the rules logically, and has a name
under which it could be stored in the config file.
- As a QPtrList with autoDelete enabled, it assumes that it is the
+ As a TQPtrList with autoDelete enabled, it assumes that it is the
central repository for the rules it contains. So if you want to
reuse a rule in another pattern, make a deep copy of that rule.
@short An abstraction of a search over messages.
@author Marc Mutz <Marc@Mutz.com>
*/
-class KMSearchPattern : public QPtrList<KMSearchRule>
+class KMSearchPattern : public TQPtrList<KMSearchRule>
{
public:
@@ -319,7 +319,7 @@ public:
If config is 0, provides a pattern with minimal, but
sufficient initialization. Unmodified, such a pattern will fail
to match any KMMessage. You can query for such an empty
- rule by using isEmpty, which is inherited from QPtrList.
+ rule by using isEmpty, which is inherited from TQPtrList.
*/
KMSearchPattern( const KConfig * config=0 );
@@ -363,7 +363,7 @@ public:
*/
void readConfig( const KConfig * config );
/** Writes itself into @p config. The group has to be preset. Tries
- to delete old-style keys by overwriting them with QString::null.
+ to delete old-style keys by overwriting them with TQString::null.
Derived classes reimplementing writeConfig() should also call this
method, or else the rules will not be stored.
@@ -371,10 +371,10 @@ public:
void writeConfig( KConfig * config ) const;
/** Get the name of the search pattern. */
- QString name() const { return mName; }
+ TQString name() const { return mName; }
/** Set the name of the search pattern. KMFilter uses this to
store it's own name, too. */
- void setName( const QString & newName ) { mName = newName ; }
+ void setName( const TQString & newName ) { mName = newName ; }
/** Get the filter operator */
KMSearchPattern::Operator op() const { return mOperator; }
@@ -382,7 +382,7 @@ public:
void setOp( KMSearchPattern::Operator aOp ) { mOperator = aOp; }
/** Returns the pattern as string. For debugging.*/
- QString asString() const;
+ TQString asString() const;
/** Overloaded assignment operator. Makes a deep copy. */
const KMSearchPattern & operator=( const KMSearchPattern & aPattern );
@@ -400,7 +400,7 @@ private:
to "<i18n("unnamed")>", and the boolean operator to @p OpAnd. */
void init();
- QString mName;
+ TQString mName;
Operator mOperator;
};