diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmailcvt/filters.hxx | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmailcvt/filters.hxx')
-rw-r--r-- | kmailcvt/filters.hxx | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kmailcvt/filters.hxx b/kmailcvt/filters.hxx index 10bb5c30b..203f3d7bb 100644 --- a/kmailcvt/filters.hxx +++ b/kmailcvt/filters.hxx @@ -22,68 +22,68 @@ #define MAX_LINE 4096 #endif -#include <qcombobox.h> -#include <qprogressbar.h> -#include <qptrlist.h> -#include <qlistbox.h> -#include <qlabel.h> +#include <tqcombobox.h> +#include <tqprogressbar.h> +#include <tqptrlist.h> +#include <tqlistbox.h> +#include <tqlabel.h> #include "kimportpagedlg.h" class FilterInfo { public: - FilterInfo(KImportPageDlg *dlg, QWidget *parent, bool _removeDupMsg); + FilterInfo(KImportPageDlg *dlg, TQWidget *parent, bool _removeDupMsg); ~FilterInfo(); - void setStatusMsg( const QString& status ); - void setFrom( const QString& from ); - void setTo( const QString& to ); - void setCurrent( const QString& current ); + void setStatusMsg( const TQString& status ); + void setFrom( const TQString& from ); + void setTo( const TQString& to ); + void setCurrent( const TQString& current ); void setCurrent( int percent = 0 ); void setOverall( int percent = 0 ); - void addLog( const QString& log ); + void addLog( const TQString& log ); void clear(); - void alert( const QString& message ); + void alert( const TQString& message ); static void terminateASAP(); bool shouldTerminate(); - QWidget *parent() { return m_parent; } + TQWidget *parent() { return m_parent; } bool removeDupMsg; private: KImportPageDlg *m_dlg; - QWidget *m_parent; + TQWidget *m_parent; static bool s_terminateASAP; }; class Filter { public: - Filter( const QString& name, const QString& author, - const QString& info = QString::null ); + Filter( const TQString& name, const TQString& author, + const TQString& info = TQString::null ); virtual ~Filter() {} virtual void import( FilterInfo* ) = 0; - QString author() const { return m_author; } - QString name() const { return m_name; } - QString info() const { return m_info; } + TQString author() const { return m_author; } + TQString name() const { return m_name; } + TQString info() const { return m_info; } int count_duplicates; //to count all duplicate messages protected: bool addMessage( FilterInfo* info, - const QString& folder, - const QString& msgFile, - const QString& msgStatusFlags = QString()); + const TQString& folder, + const TQString& msgFile, + const TQString& msgStatusFlags = TQString()); bool addMessage_fastImport( FilterInfo* info, - const QString& folder, - const QString& msgFile, - const QString& msgStatusFlags = QString()); + const TQString& folder, + const TQString& msgFile, + const TQString& msgStatusFlags = TQString()); bool endImport(); private: - QString m_name; - QString m_author; - QString m_info; + TQString m_name; + TQString m_author; + TQString m_info; }; @@ -94,8 +94,8 @@ class Filter template <unsigned int size> class FolderStructureBase { public: - typedef QString NString[size]; - /** Constructor. Need a default constructor for QValueList. */ + typedef TQString NString[size]; + /** Constructor. Need a default constructor for TQValueList. */ FolderStructureBase() {} ; /** Constructor. Turn N QStrings into a folder structure @@ -124,19 +124,19 @@ public: /** Access the different fields. There doesn't seem to * be a real semantics for the fields. */ - const QString operator [](unsigned int i) const + const TQString operator [](unsigned int i) const { - if (i<size) return d[i]; else return QString::null; + if (i<size) return d[i]; else return TQString::null; } ; /** Access the different fields, for writing. */ - QString &operator [](unsigned int i) + TQString &operator [](unsigned int i) { Q_ASSERT(i<size); if (i<size) return d[i]; else return d[0]; } ; private: - QString d[size]; + TQString d[size]; } ; #endif |