diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/pluginmanager.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip |
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/pluginmanager.h')
-rw-r--r-- | libktorrent/pluginmanager.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libktorrent/pluginmanager.h b/libktorrent/pluginmanager.h index 611ec66..af5f46c 100644 --- a/libktorrent/pluginmanager.h +++ b/libktorrent/pluginmanager.h @@ -20,10 +20,10 @@ #ifndef KTPLUGINMANAGER_H #define KTPLUGINMANAGER_H -#include <qptrlist.h> +#include <tqptrlist.h> #include <util/ptrmap.h> #include <interfaces/plugin.h> -#include <qstringlist.h> +#include <tqstringlist.h> namespace kt @@ -40,12 +40,12 @@ namespace kt */ class PluginManager { - bt::PtrMap<QString,Plugin> plugins,unloaded; + bt::PtrMap<TQString,Plugin> plugins,unloaded; CoreInterface* core; GUIInterface* gui; PluginManagerPrefPage* prefpage; - QStringList pltoload; - QString cfg_file; + TQStringList pltoload; + TQString cfg_file; public: PluginManager(CoreInterface* core,GUIInterface* gui); virtual ~PluginManager(); @@ -62,38 +62,38 @@ namespace kt * Loads which plugins need to be loaded from a file. * @param file The file */ - void loadConfigFile(const QString & file); + void loadConfigFile(const TQString & file); /** * Saves which plugins are loaded to a file. * @param file The file */ - void saveConfigFile(const QString & file); + void saveConfigFile(const TQString & file); /** * Fill a list with all available plugins. * @param pllist The plugin list */ - void fillPluginList(QPtrList<Plugin> & plist); + void fillPluginList(TQPtrList<Plugin> & plist); /** * Is a plugin loaded * @param name Naame of plugin. * @return True if it is, false if it isn't */ - bool isLoaded(const QString & name) const; + bool isLoaded(const TQString & name) const; /** * Load a plugin. * @param name Name of the plugin */ - void load(const QString & name); + void load(const TQString & name); /** * Unload a plugin. * @param name Name of the plugin */ - void unload(const QString & name); + void unload(const TQString & name); /** * Load all unloaded plugins. @@ -110,7 +110,7 @@ namespace kt */ void updateGuiPlugins(); private: - void writeDefaultConfigFile(const QString & file); + void writeDefaultConfigFile(const TQString & file); }; } |