summaryrefslogtreecommitdiffstats
path: root/kmail/antispamwizard.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/antispamwizard.h')
-rw-r--r--kmail/antispamwizard.h136
1 files changed, 68 insertions, 68 deletions
diff --git a/kmail/antispamwizard.h b/kmail/antispamwizard.h
index 745edae60..be2e67e87 100644
--- a/kmail/antispamwizard.h
+++ b/kmail/antispamwizard.h
@@ -33,9 +33,9 @@
#include <klistbox.h>
#include <kwizard.h>
-#include <qcheckbox.h>
-#include <qdict.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqdict.h>
+#include <tqlayout.h>
class KActionCollection;
class KMFolder;
@@ -119,7 +119,7 @@ namespace KMail {
within one of the wizard pages.
*/
AntiSpamWizard( WizardMode mode,
- QWidget * parent, KMFolderTree * mainFolderTree );
+ TQWidget * parent, KMFolderTree * mainFolderTree );
protected:
/**
@@ -131,28 +131,28 @@ namespace KMail {
{
public:
SpamToolConfig() {}
- SpamToolConfig( QString toolId, int configVersion, int prio,
- QString name, QString exec, QString url, QString filter,
- QString detection, QString spam, QString ham,
- QString header, QString pattern, QString pattern2,
- QString serverPattern,
+ SpamToolConfig( TQString toolId, int configVersion, int prio,
+ TQString name, TQString exec, TQString url, TQString filter,
+ TQString detection, TQString spam, TQString ham,
+ TQString header, TQString pattern, TQString pattern2,
+ TQString serverPattern,
bool detectionOnly, bool regExp, bool bayesFilter,
bool tristateDetection, WizardMode type );
int getVersion() const { return mVersion; }
int getPrio() const { return mPrio; }
- QString getId() const { return mId; }
- QString getVisibleName() const { return mVisibleName; }
- QString getExecutable() const { return mExecutable; }
- QString getWhatsThisText() const { return mWhatsThisText; }
- QString getFilterName() const { return mFilterName; }
- QString getDetectCmd() const { return mDetectCmd; }
- QString getSpamCmd() const { return mSpamCmd; }
- QString getHamCmd() const { return mHamCmd; }
- QString getDetectionHeader() const { return mDetectionHeader; }
- QString getDetectionPattern() const { return mDetectionPattern; }
- QString getDetectionPattern2() const { return mDetectionPattern2; }
- QString getServerPattern() const { return mServerPattern; }
+ TQString getId() const { return mId; }
+ TQString getVisibleName() const { return mVisibleName; }
+ TQString getExecutable() const { return mExecutable; }
+ TQString getWhatsThisText() const { return mWhatsThisText; }
+ TQString getFilterName() const { return mFilterName; }
+ TQString getDetectCmd() const { return mDetectCmd; }
+ TQString getSpamCmd() const { return mSpamCmd; }
+ TQString getHamCmd() const { return mHamCmd; }
+ TQString getDetectionHeader() const { return mDetectionHeader; }
+ TQString getDetectionPattern() const { return mDetectionPattern; }
+ TQString getDetectionPattern2() const { return mDetectionPattern2; }
+ TQString getServerPattern() const { return mServerPattern; }
bool isServerBased() const;
bool isDetectionOnly() const { return mDetectionOnly; }
bool isUseRegExp() const { return mUseRegExp; }
@@ -165,34 +165,34 @@ namespace KMail {
private:
// used to identifiy configs for the same tool
- QString mId;
+ TQString mId;
// The version of the config data, used for merging and
// detecting newer configs
int mVersion;
// the priority of the tool in the list presented to the user
int mPrio;
// the name as shown by the checkbox in the dialog page
- QString mVisibleName;
+ TQString mVisibleName;
// the command to check the existance of the tool
- QString mExecutable;
+ TQString mExecutable;
// the What's This help text (e.g. url for the tool)
- QString mWhatsThisText;
+ TQString mWhatsThisText;
// name for the created filter in the filter list
- QString mFilterName;
+ TQString mFilterName;
// pipe through cmd used to detect spam messages
- QString mDetectCmd;
+ TQString mDetectCmd;
// pipe through cmd to let the tool learn a spam message
- QString mSpamCmd;
+ TQString mSpamCmd;
// pipe through cmd to let the tool learn a ham message
- QString mHamCmd;
+ TQString mHamCmd;
// by which header are messages marked as spam
- QString mDetectionHeader;
+ TQString mDetectionHeader;
// what header pattern is used to mark spam messages
- QString mDetectionPattern;
+ TQString mDetectionPattern;
// what header pattern is used to mark unsure messages
- QString mDetectionPattern2;
+ TQString mDetectionPattern2;
// what header pattern is used in the account to check for a certain server
- QString mServerPattern;
+ TQString mServerPattern;
// filter cannot search actively but relies on pattern by regExp or contain rule
bool mDetectionOnly;
// filter searches for the pattern by regExp or contain rule
@@ -214,15 +214,15 @@ namespace KMail {
{
public:
ConfigReader( WizardMode mode,
- QValueList<SpamToolConfig> & configList );
+ TQValueList<SpamToolConfig> & configList );
~ConfigReader( );
- QValueList<SpamToolConfig> & getToolList() { return mToolList; }
+ TQValueList<SpamToolConfig> & getToolList() { return mToolList; }
void readAndMergeConfig();
private:
- QValueList<SpamToolConfig> & mToolList;
+ TQValueList<SpamToolConfig> & mToolList;
KConfig *mConfig;
WizardMode mMode;
@@ -250,15 +250,15 @@ namespace KMail {
private:
/* Check for the availability of an executible along the PATH */
- int checkForProgram( const QString &executable );
+ int checkForProgram( const TQString &executable );
/* generic checks if any option in a page is checked */
bool anyVirusOptionChecked();
/* convenience method calling the appropriate filter manager method */
- const QString uniqueNameFor( const QString & name );
+ const TQString uniqueNameFor( const TQString & name );
/* convenience method to sort out new and existing filters */
- void sortFilterOnExistance( const QString & intendedFilterName,
- QString & newFilters,
- QString & replaceFilters );
+ void sortFilterOnExistance( const TQString & intendedFilterName,
+ TQString & newFilters,
+ TQString & replaceFilters );
/* The pages in the wizard */
ASWizInfoPage * mInfoPage;
@@ -267,7 +267,7 @@ namespace KMail {
ASWizSummaryPage * mSummaryPage;
/* The configured tools and it's settings to be used in the wizard. */
- QValueList<SpamToolConfig> mToolList;
+ TQValueList<SpamToolConfig> mToolList;
/* Are any spam tools selected? */
bool mSpamToolsUsed;
@@ -282,15 +282,15 @@ namespace KMail {
class ASWizPage : public QWidget
{
public:
- ASWizPage( QWidget *parent, const char *name,
- const QString *bannerName = 0);
+ ASWizPage( TQWidget *parent, const char *name,
+ const TQString *bannerName = 0);
protected:
- QBoxLayout *mLayout;
+ TQBoxLayout *mLayout;
private:
- QPixmap *mPixmap;
- QLabel *mBannerLabel;
+ TQPixmap *mPixmap;
+ TQLabel *mBannerLabel;
};
@@ -301,11 +301,11 @@ namespace KMail {
public:
ASWizInfoPage( AntiSpamWizard::WizardMode mode,
- QWidget *parent, const char *name );
+ TQWidget *parent, const char *name );
- void setScanProgressText( const QString &toolName );
- void addAvailableTool( const QString &visibleName );
- bool isProgramSelected( const QString &visibleName );
+ void setScanProgressText( const TQString &toolName );
+ void addAvailableTool( const TQString &visibleName );
+ bool isProgramSelected( const TQString &visibleName );
private slots:
void processSelectionChange();
@@ -314,9 +314,9 @@ namespace KMail {
void selectionChanged();
private:
- QLabel *mIntroText;
- QLabel *mScanProgressText;
- QLabel *mSelectionHint;
+ TQLabel *mIntroText;
+ TQLabel *mScanProgressText;
+ TQLabel *mSelectionHint;
KListBox *mToolsList;
};
@@ -326,14 +326,14 @@ namespace KMail {
Q_OBJECT
public:
- ASWizSpamRulesPage( QWidget * parent, const char * name, KMFolderTree * mainFolderTree );
+ ASWizSpamRulesPage( TQWidget * parent, const char * name, KMFolderTree * mainFolderTree );
bool markAsReadSelected() const;
bool moveSpamSelected() const;
bool moveUnsureSelected() const;
- QString selectedSpamFolderName() const;
- QString selectedUnsureFolderName() const;
+ TQString selectedSpamFolderName() const;
+ TQString selectedUnsureFolderName() const;
void allowUnsureFolderSelection( bool enabled );
@@ -345,9 +345,9 @@ namespace KMail {
void selectionChanged();
private:
- QCheckBox * mMarkRules;
- QCheckBox * mMoveSpamRules;
- QCheckBox * mMoveUnsureRules;
+ TQCheckBox * mMarkRules;
+ TQCheckBox * mMoveSpamRules;
+ TQCheckBox * mMoveUnsureRules;
FolderRequester *mFolderReqForSpamFolder;
FolderRequester *mFolderReqForUnsureFolder;
};
@@ -358,13 +358,13 @@ namespace KMail {
Q_OBJECT
public:
- ASWizVirusRulesPage( QWidget * parent, const char * name, KMFolderTree * mainFolderTree );
+ ASWizVirusRulesPage( TQWidget * parent, const char * name, KMFolderTree * mainFolderTree );
bool pipeRulesSelected() const;
bool moveRulesSelected() const;
bool markReadRulesSelected() const;
- QString selectedFolderName() const;
+ TQString selectedFolderName() const;
private slots:
void processSelectionChange();
@@ -372,10 +372,10 @@ namespace KMail {
void selectionChanged();
private:
- QCheckBox * mPipeRules;
- QCheckBox * mMoveRules;
+ TQCheckBox * mPipeRules;
+ TQCheckBox * mMoveRules;
SimpleFolderTree *mFolderTree;
- QCheckBox * mMarkRules;
+ TQCheckBox * mMarkRules;
};
//---------------------------------------------------------------------------
@@ -384,12 +384,12 @@ namespace KMail {
Q_OBJECT
public:
- ASWizSummaryPage( QWidget * parent, const char * name );
+ ASWizSummaryPage( TQWidget * parent, const char * name );
- void setSummaryText( const QString & text );
+ void setSummaryText( const TQString & text );
private:
- QLabel * mSummaryText;
+ TQLabel * mSummaryText;
};