diff options
Diffstat (limited to 'src/translators/importer.h')
-rw-r--r-- | src/translators/importer.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/translators/importer.h b/src/translators/importer.h index 4df5ccb..d10e027 100644 --- a/src/translators/importer.h +++ b/src/translators/importer.h @@ -14,15 +14,15 @@ #ifndef IMPORTER_H #define IMPORTER_H -class QWidget; +class TQWidget; #include "../datavectors.h" #include <klocale.h> #include <kurl.h> -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> namespace Tellico { namespace Import { @@ -39,20 +39,21 @@ namespace Tellico { * * @author Robby Stephenson */ -class Importer : public QObject { +class Importer : public TQObject { Q_OBJECT + TQ_OBJECT public: - Importer() : QObject(), m_options(ImportProgress) {} + Importer() : TQObject(), m_options(ImportProgress) {} /** * The constructor should immediately load the contents of the file to be imported. * Any warnings or errors should be added the the status message queue. * * @param url The URL of the file to import */ - Importer(const KURL& url) : QObject(), m_options(ImportProgress), m_urls(url) {} - Importer(const KURL::List& urls) : QObject(), m_options(ImportProgress), m_urls(urls) {} - Importer(const QString& text) : QObject(), m_options(ImportProgress), m_text(text) {} + Importer(const KURL& url) : TQObject(), m_options(ImportProgress), m_urls(url) {} + Importer(const KURL::List& urls) : TQObject(), m_options(ImportProgress), m_urls(urls) {} + Importer(const TQString& text) : TQObject(), m_options(ImportProgress), m_text(text) {} /** */ virtual ~Importer() {} @@ -71,14 +72,14 @@ public: * * @return The status message */ - const QString& statusMessage() const { return m_statusMsg; } + const TQString& statusMessage() const { return m_statusMsg; } /** * Returns a widget with the setting specific to this importer, or 0 if no * options are needed. * * @return A pointer to the setting widget */ - virtual QWidget* widget(QWidget*, const char*) { return 0; } + virtual TQWidget* widget(TQWidget*, const char*) { return 0; } /** * Checks to see if the importer can return a collection of this type * @@ -90,14 +91,14 @@ public: * Validate the import settings */ virtual bool validImport() const { return true; } - virtual void setText(const QString& text) { m_text = text; } + virtual void setText(const TQString& text) { m_text = text; } long options() const { return m_options; } void setOptions(long options) { m_options = options; } /** * Returns a string useful for the ProgressManager */ - QString progressLabel() const { - if(url().isEmpty()) return i18n("Loading data..."); else return i18n("Loading %1...").arg(url().fileName()); + TQString progressLabel() const { + if(url().isEmpty()) return i18n("Loading data..."); else return i18n("Loading %1...").tqarg(url().fileName()); } public slots: @@ -114,21 +115,21 @@ protected: */ KURL url() const { return m_urls.isEmpty() ? KURL() : m_urls[0]; } KURL::List urls() const { return m_urls; } - QString text() const { return m_text; } + TQString text() const { return m_text; } /** * Adds a message to the status queue. * * @param msg A string containing a warning or error. */ - void setStatusMessage(const QString& msg) { if(!msg.isEmpty()) m_statusMsg += msg + QChar(' '); } + void setStatusMessage(const TQString& msg) { if(!msg.isEmpty()) m_statusMsg += msg + TQChar(' '); } static const uint s_stepSize; private: long m_options; KURL::List m_urls; - QString m_text; - QString m_statusMsg; + TQString m_text; + TQString m_statusMsg; }; } // end namespace |