summaryrefslogtreecommitdiffstats
path: root/src/pluginloader/replaygainpluginloader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 23:15:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 23:15:51 +0000
commit6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch)
tree6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/pluginloader/replaygainpluginloader.cpp
parent6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff)
downloadsoundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz
soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip
TQt4 port soundkonverter
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/pluginloader/replaygainpluginloader.cpp')
-rwxr-xr-xsrc/pluginloader/replaygainpluginloader.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pluginloader/replaygainpluginloader.cpp b/src/pluginloader/replaygainpluginloader.cpp
index 7ac11f6..2e37081 100755
--- a/src/pluginloader/replaygainpluginloader.cpp
+++ b/src/pluginloader/replaygainpluginloader.cpp
@@ -1,7 +1,7 @@
#include "replaygainpluginloader.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <klocale.h>
@@ -19,9 +19,9 @@ ReplayGainPluginLoader::ReplayGainPluginLoader()
ReplayGainPluginLoader::~ReplayGainPluginLoader()
{}
-int ReplayGainPluginLoader::verifyFile( QString fileName )
+int ReplayGainPluginLoader::verifyFile( TQString fileName )
{
- QFile opmlFile( fileName );
+ TQFile opmlFile( fileName );
if( !opmlFile.open( IO_ReadOnly ) ) {
return -1;
}
@@ -30,10 +30,10 @@ int ReplayGainPluginLoader::verifyFile( QString fileName )
}
opmlFile.close();
- QDomElement root = domTree.documentElement();
+ TQDomElement root = domTree.documentElement();
if( root.attribute("type") != "replaygain" ) return -1;
int version;
- QDomNode node;
+ TQDomNode node;
node = root.firstChild();
while( !node.isNull() ) {
if( node.isElement() && node.nodeName() == "info" ) {
@@ -45,17 +45,17 @@ int ReplayGainPluginLoader::verifyFile( QString fileName )
return version;
}
-ReplayGainPlugin* ReplayGainPluginLoader::loadFile( QString fileName )
+ReplayGainPlugin* ReplayGainPluginLoader::loadFile( TQString fileName )
{
//int t_int;
//float t_float;
- //QString t_str;
+ //TQString t_str;
ReplayGainPlugin* plugin = new ReplayGainPlugin();
plugin->info.version = -1; // if something goes wrong, we can see that by looking at plugin->info.version
plugin->filePathName = fileName;
- QFile opmlFile( fileName );
+ TQFile opmlFile( fileName );
if( !opmlFile.open( IO_ReadOnly ) ) {
return plugin;
}
@@ -64,9 +64,9 @@ ReplayGainPlugin* ReplayGainPluginLoader::loadFile( QString fileName )
}
opmlFile.close();
- QDomElement root = domTree.documentElement();
+ TQDomElement root = domTree.documentElement();
if( root.attribute("type") != "replaygain" ) return plugin;
- QDomNode node;//, sub1Node;
+ TQDomNode node;//, sub1Node;
node = root.firstChild();
while( !node.isNull() ) {
@@ -87,7 +87,7 @@ ReplayGainPlugin* ReplayGainPluginLoader::loadFile( QString fileName )
plugin->replaygain.in_files = node.toElement().attribute("in_files");
plugin->replaygain.output_single = node.toElement().attribute("output_single");
plugin->replaygain.output_multiple = node.toElement().attribute("output_multiple");
- plugin->replaygain.mime_types = QStringList::split( ',', node.toElement().attribute("mime_types","application/octet-stream") );
+ plugin->replaygain.mime_types = TQStringList::split( ',', node.toElement().attribute("mime_types","application/octet-stream") );
plugin->replaygain.force = node.toElement().attribute("force");
plugin->replaygain.skip = node.toElement().attribute("skip");
plugin->replaygain.track = node.toElement().attribute("track");