diff options
Diffstat (limited to 'src/newstuff/manager.h')
-rw-r--r-- | src/newstuff/manager.h | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/src/newstuff/manager.h b/src/newstuff/manager.h index 4102be3..53c6726 100644 --- a/src/newstuff/manager.h +++ b/src/newstuff/manager.h @@ -18,10 +18,10 @@ class KArchiveDirectory; class KURL; class KTempFile; -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> -class QStringList; +class TQStringList; namespace KNS { class Entry; @@ -40,7 +40,7 @@ enum DataType { DataScript }; -enum InstallStatus { +enum InstalltqStatus { NotInstalled, OldVersion, Current @@ -48,29 +48,30 @@ enum InstallStatus { struct DataSourceInfo { DataSourceInfo() : isUpdate(false) {} - QString specFile; // full path of .spec file - QString sourceName; - QString sourceExec; // full executable path of script + TQString specFile; // full path of .spec file + TQString sourceName; + TQString sourceExec; // full executable path of script bool isUpdate : 1; // whether the info is for an updated source }; -class Manager : public QObject { +class Manager : public TQObject { Q_OBJECT + TQ_OBJECT public: - Manager(QObject* parent); + Manager(TQObject* tqparent); ~Manager(); void install(DataType type, KNS::Entry* entry); - QPtrList<DataSourceInfo> dataSourceInfo() const { return m_infoList; } + TQPtrList<DataSourceInfo> dataSourceInfo() const { return m_infoList; } - bool installTemplate(const KURL& url, const QString& entryName = QString::null); - bool removeTemplate(const QString& name); + bool installTemplate(const KURL& url, const TQString& entryName = TQString()); + bool removeTemplate(const TQString& name); bool installScript(const KURL& url); - bool removeScript(const QString& name); + bool removeScript(const TQString& name); - static InstallStatus installStatus(KNS::Entry* entry); + static InstalltqStatus installtqStatus(KNS::Entry* entry); static bool checkCommonFile(); signals: @@ -81,17 +82,17 @@ private slots: void slotInstallFinished(); private: - static QStringList archiveFiles(const KArchiveDirectory* dir, - const QString& path = QString::null); + static TQStringList archiveFiles(const KArchiveDirectory* dir, + const TQString& path = TQString()); - static QString findXSL(const KArchiveDirectory* dir); - static QString findEXE(const KArchiveDirectory* dir); + static TQString findXSL(const KArchiveDirectory* dir); + static TQString findEXE(const KArchiveDirectory* dir); - typedef QPair<KNS::Entry*, DataType> EntryPair; - QMap<KIO::Job*, EntryPair> m_jobMap; - QMap<KURL, QString> m_urlNameMap; - QMap<const NewScript*, KNS::Entry*> m_scriptEntryMap; - QPtrList<DataSourceInfo> m_infoList; + typedef TQPair<KNS::Entry*, DataType> EntryPair; + TQMap<KIO::Job*, EntryPair> m_jobMap; + TQMap<KURL, TQString> m_urlNameMap; + TQMap<const NewScript*, KNS::Entry*> m_scriptEntryMap; + TQPtrList<DataSourceInfo> m_infoList; KTempFile* m_tempFile; }; |