summaryrefslogtreecommitdiffstats
path: root/kmail/kmfilteraction.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfilteraction.h')
-rw-r--r--kmail/kmfilteraction.h194
1 files changed, 97 insertions, 97 deletions
diff --git a/kmail/kmfilteraction.h b/kmail/kmfilteraction.h
index abd42719..c47a4a6d 100644
--- a/kmail/kmfilteraction.h
+++ b/kmail/kmfilteraction.h
@@ -22,13 +22,13 @@
#include <kmime_mdn.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qdict.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
-#include <qguardedptr.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqdict.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
+#include <tqguardedptr.h>
+#include <tqwidget.h>
class KMMsgBase;
class KMMessage;
@@ -74,16 +74,16 @@ public:
CriticalError = 0x8 };
/** Initialize filter action with (english) name @p aName and
(internationalized) label @p aLabel. */
- KMFilterAction(const char* aName, const QString aLabel);
+ KMFilterAction(const char* aName, const TQString aLabel);
virtual ~KMFilterAction();
/** Returns nationalized label, ie. the one which is presented in
the filter dialog. */
- const QString label() const { return mLabel; }
+ const TQString label() const { return mLabel; }
/** Returns english name, ie. the one under which it is known in the
config. */
- const QString name() const { return mName; }
+ const TQString name() const { return mName; }
/** Execute action on given message. Returns @p CriticalError if a
critical error has occurred (eg. disk full), @p ErrorButGoOn if
@@ -111,30 +111,30 @@ public:
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr) = 0;
+ virtual void argsFromString(const TQString argsStr) = 0;
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const = 0;
+ virtual const TQString argsAsString() const = 0;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const = 0;
+ virtual const TQString displayString() const = 0;
/** Called from the filter when a folder is removed. Tests if the
folder @p aFolder is used and changes to @p aNewFolder in this
@@ -150,12 +150,12 @@ public:
/** Automates the sending of MDNs from filter actions. */
static void sendMDN( KMMessage * msg, KMime::MDN::DispositionType d,
- const QValueList<KMime::MDN::DispositionModifier> & m
- =QValueList<KMime::MDN::DispositionModifier>() );
+ const TQValueList<KMime::MDN::DispositionModifier> & m
+ =TQValueList<KMime::MDN::DispositionModifier>() );
private:
- QString mName;
- QString mLabel;
+ TQString mName;
+ TQString mLabel;
};
//=========================================================
@@ -166,7 +166,7 @@ private:
/** Abstract base class for KMail's filter actions that need no
- parameter, e.g. "Confirm Delivery". Creates an (empty) QWidget as
+ parameter, e.g. "Confirm Delivery". Creates an (empty) TQWidget as
parameter widget. A subclass of this must provide at least
implementations for the following methods:
@@ -183,19 +183,19 @@ class KMFilterActionWithNone : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithNone(const char* aName, const QString aLabel);
+ KMFilterActionWithNone(const char* aName, const TQString aLabel);
/** Read extra arguments from given string. This type of filter
action has no parameters, so this is a no-op. */
- virtual void argsFromString(const QString) {};
+ virtual void argsFromString(const TQString) {};
/** Return extra arguments as string. Must not contain newlines. We
- return QString::null, because we have no parameter. */
- virtual const QString argsAsString() const { return QString::null; }
+ return TQString::null, because we have no parameter. */
+ virtual const TQString argsAsString() const { return TQString::null; }
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
};
@@ -208,7 +208,7 @@ public:
/** Abstract base class for KMail's filter actions that need a
free-form parameter, e.g. 'set transport' or 'set reply to'. Can
- create a QLineEdit as parameter widget. A subclass of this
+ create a TQLineEdit as parameter widget. A subclass of this
must provide at least implementations for the following methods:
@li virtual KMFilterAction::ReturnCodes KMFilterAction::process
@@ -224,7 +224,7 @@ class KMFilterActionWithString : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithString(const char* aName, const QString aLabel);
+ KMFilterActionWithString(const char* aName, const TQString aLabel);
/** Determines whether this action is valid. But this is just a
quick test. Eg., actions that have a mail address as parameter
@@ -234,33 +234,33 @@ public:
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const;
+ virtual const TQString argsAsString() const;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
protected:
- QString mParameter;
+ TQString mParameter;
};
//=========================================================
@@ -288,7 +288,7 @@ class KMFilterActionWithUOID : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithUOID(const char* aName, const QString aLabel);
+ KMFilterActionWithUOID(const char* aName, const TQString aLabel);
/** Determines whether this action is valid. But this is just a
quick test. Eg., actions that have a mail address as parameter
@@ -297,14 +297,14 @@ public:
virtual bool isEmpty() const { return mParameter == 0; }
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const;
+ virtual const TQString argsAsString() const;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
protected:
uint mParameter;
@@ -319,7 +319,7 @@ protected:
/** Abstract base class for KMail's filter actions that need a
parameter which can be chosen from a fixed set, e.g. 'set
- identity'. Can create a QComboBox as parameter widget. A
+ identity'. Can create a TQComboBox as parameter widget. A
subclass of this must provide at least implementations for the
following methods:
@@ -327,7 +327,7 @@ protected:
@li static KMFilterAction::newAction
Additionally, it's constructor should populate the
- QStringList @p mParameterList with the valid parameter
+ TQStringList @p mParameterList with the valid parameter
strings. The combobox will then contain be populated automatically
with those strings. The default string will be the first one.
@@ -341,30 +341,30 @@ class KMFilterActionWithStringList : public KMFilterActionWithString
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithStringList(const char* aName, const QString aLabel);
+ KMFilterActionWithStringList(const char* aName, const TQString aLabel);
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
protected:
- QStringList mParameterList;
+ TQStringList mParameterList;
};
@@ -377,7 +377,7 @@ protected:
/** Abstract base class for KMail's filter actions that need a
mail folder as parameter, e.g. 'move into folder'. Can
- create a QComboBox as parameter widget. A subclass of this
+ create a TQComboBox as parameter widget. A subclass of this
must provide at least implementations for the following methods:
@li virtual KMFilterAction::ReturnCodes KMFilterAction::process
@@ -394,7 +394,7 @@ class KMFilterActionWithFolder : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithFolder(const char* aName, const QString aLabel);
+ KMFilterActionWithFolder(const char* aName, const TQString aLabel);
/** Determines whether this action is valid. But this is just a
quick test. Eg., actions that have a mail address as parameter
@@ -404,30 +404,30 @@ public:
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const;
+ virtual const TQString argsAsString() const;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
/** Called from the filter when a folder is removed. Tests if the
folder @p aFolder is used and changes to @p aNewFolder in this
@@ -435,8 +435,8 @@ public:
virtual bool folderRemoved(KMFolder* aFolder, KMFolder* aNewFolder);
protected:
- QGuardedPtr<KMFolder> mFolder;
- QString mFolderName;
+ TQGuardedPtr<KMFolder> mFolder;
+ TQString mFolderName;
};
//=========================================================
@@ -448,7 +448,7 @@ protected:
/** Abstract base class for KMail's filter actions that need a mail
address as parameter, e.g. 'forward to'. Can create a
- QComboBox (capable of completion from the address book) as
+ TQComboBox (capable of completion from the address book) as
parameter widget. A subclass of this must provide at least
implementations for the following methods:
@@ -465,24 +465,24 @@ class KMFilterActionWithAddress : public KMFilterActionWithString
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithAddress(const char* aName, const QString aLabel);
+ KMFilterActionWithAddress(const char* aName, const TQString aLabel);
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
};
//=========================================================
@@ -516,7 +516,7 @@ class KMFilterActionWithUrl : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithUrl(const char* aName, const QString aLabel);
+ KMFilterActionWithUrl(const char* aName, const TQString aLabel);
~KMFilterActionWithUrl();
/** Determines whether this action is valid. But this is just a
quick test. Eg., actions that have a mail address as parameter
@@ -526,33 +526,33 @@ public:
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const;
+ virtual const TQString argsAsString() const;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
protected:
- QString mParameter;
+ TQString mParameter;
};
@@ -561,31 +561,31 @@ class KMFilterActionWithCommand : public KMFilterActionWithUrl
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithCommand(const char* aName, const QString aLabel);
+ KMFilterActionWithCommand(const char* aName, const TQString aLabel);
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Substitutes various placeholders for data from the message
resp. for filenames containing that data. Currently, only %n is
supported, where n in an integer >= 0. %n gets substituted for
the name of a tempfile holding the n'th message part, with n=0
meaning the body of the message. */
- virtual QString substituteCommandLineArgsFor( KMMessage *aMsg, QPtrList<KTempFile> & aTempFileList ) const;
+ virtual TQString substituteCommandLineArgsFor( KMMessage *aMsg, TQPtrList<KTempFile> & aTempFileList ) const;
virtual ReturnCode genericProcess( KMMessage * aMsg, bool filtering ) const;
};
@@ -597,7 +597,7 @@ class KMFilterActionWithTest : public KMFilterAction
public:
/** Initialize filter action with (english) name @p aName. This is
the name under which this action is known in the config file. */
- KMFilterActionWithTest(const char* aName, const QString aLabel);
+ KMFilterActionWithTest(const char* aName, const TQString aLabel);
~KMFilterActionWithTest();
/** Determines whether this action is valid. But this is just a
quick test. Eg., actions that have a mail address as parameter
@@ -607,33 +607,33 @@ public:
/** Creates a widget for setting the filter action parameter. Also
sets the value of the widget. */
- virtual QWidget* createParamWidget(QWidget* parent) const;
+ virtual TQWidget* createParamWidget(TQWidget* parent) const;
/** The filter action shall set it's parameter from the widget's
contents. It is allowed that the value is read by the action
before this function is called. */
- virtual void applyParamWidgetValue(QWidget* paramWidget);
+ virtual void applyParamWidgetValue(TQWidget* paramWidget);
/** The filter action shall set it's widget's contents from it's
parameter. */
- virtual void setParamWidgetValue(QWidget* paramWidget) const;
+ virtual void setParamWidgetValue(TQWidget* paramWidget) const;
/** The filter action shall clear it's parameter widget's
contents. */
- virtual void clearParamWidget(QWidget* paramWidget) const;
+ virtual void clearParamWidget(TQWidget* paramWidget) const;
/** Read extra arguments from given string. */
- virtual void argsFromString(const QString argsStr);
+ virtual void argsFromString(const TQString argsStr);
/** Return extra arguments as string. Must not contain newlines. */
- virtual const QString argsAsString() const;
+ virtual const TQString argsAsString() const;
/** Returns a translated string describing this filter for visualization
purposes, e.g. in the filter log. */
- virtual const QString displayString() const;
+ virtual const TQString displayString() const;
protected:
- QString mParameter;
+ TQString mParameter;
};
@@ -644,7 +644,7 @@ typedef KMFilterAction* (*KMFilterActionNewFunc)(void);
/** Auxiliary struct to KMFilterActionDict. */
struct KMFilterActionDesc
{
- QString label, name;
+ TQString label, name;
KMFilterActionNewFunc create;
};
@@ -670,23 +670,23 @@ struct KMFilterActionDesc
@see KMFilterAction KMFilterActionDesc KMFilter
*/
-class KMFilterActionDict: public QDict<KMFilterActionDesc>
+class KMFilterActionDict: public TQDict<KMFilterActionDesc>
{
public:
KMFilterActionDict();
/** Overloaded member function, provided for convenience. Thin
- wrapper around QDict::insert and QPtrList::insert.
+ wrapper around TQDict::insert and TQPtrList::insert.
Inserts the resulting KMFilterActionDesc
thrice: First with the name, then with the label as key into the
- QDict, then into the QPtrList. For that, it creates an
+ TQDict, then into the TQPtrList. For that, it creates an
instance of the action internally and deletes it again after
querying it for name and label. */
void insert(KMFilterActionNewFunc aNewFunc);
/** Provides read-only access to a list of all known filter
actions. */
- const QPtrList<KMFilterActionDesc>& list() const { return mList; }
+ const TQPtrList<KMFilterActionDesc>& list() const { return mList; }
protected:
/** Populate the dictionary with all known KMFilterAction
@@ -694,7 +694,7 @@ protected:
virtual void init(void);
private:
- QPtrList<KMFilterActionDesc> mList;
+ TQPtrList<KMFilterActionDesc> mList;
};
#endif /*kmfilteraction_h*/