summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/plugins/audiocdencoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/audiocd/plugins/audiocdencoder.cpp')
-rw-r--r--kioslave/audiocd/plugins/audiocdencoder.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kioslave/audiocd/plugins/audiocdencoder.cpp b/kioslave/audiocd/plugins/audiocdencoder.cpp
index 32f13914..6dfbec18 100644
--- a/kioslave/audiocd/plugins/audiocdencoder.cpp
+++ b/kioslave/audiocd/plugins/audiocdencoder.cpp
@@ -19,8 +19,8 @@
#include <audiocdencoder.h>
#include <klibloader.h>
#include <kdebug.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <kstandarddirs.h>
/**
@@ -28,7 +28,7 @@
* @param libFileName file to try to load.
* @returns pointer to the symbol or NULL
*/
-void *loadPlugin(const QString &libFileName)
+void *loadPlugin(const TQString &libFileName)
{
#ifdef DEBUG
kdDebug(7117) << "Trying to load library. File: \"" << libFileName.latin1() << "\"." << endl;
@@ -59,24 +59,24 @@ void *loadPlugin(const QString &libFileName)
* but I do know that this does work. :) Feel free to improve the loading system,
* there isn't much code anyway.
*/
-void AudioCDEncoder::findAllPlugins(KIO::SlaveBase *slave, QPtrList<AudioCDEncoder> &encoders){
- QString foundEncoders;
+void AudioCDEncoder::findAllPlugins(KIO::SlaveBase *slave, TQPtrList<AudioCDEncoder> &encoders){
+ TQString foundEncoders;
KStandardDirs standardDirs;
- QStringList dirs = standardDirs.findDirs("module", "");
- for (QStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it) {
- QDir dir(*it);
+ TQStringList dirs = standardDirs.findDirs("module", "");
+ for (TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it) {
+ TQDir dir(*it);
if (!dir.exists()) {
kdDebug(7117) << "Directory given by KStandardDirs: " << dir.path() << " doesn't exists!" << endl;
continue;
}
- dir.setFilter(QDir::Files | QDir::Hidden);
+ dir.setFilter(TQDir::Files | TQDir::Hidden);
- QStringList list = dir.entryList( "libaudiocd_encoder_*.so");
+ TQStringList list = dir.entryList( "libaudiocd_encoder_*.so");
kdDebug() << "list " << list << endl;
- for (QStringList::ConstIterator it2 = list.begin(); it2 != list.end(); ++it2)
+ for (TQStringList::ConstIterator it2 = list.begin(); it2 != list.end(); ++it2)
{
- QString fileName = *it2;
+ TQString fileName = *it2;
kdDebug() << fileName << endl;
if (foundEncoders.contains(fileName)) {
kdDebug(7117) << "Warning, encoder has been found twice!" << endl;
@@ -86,7 +86,7 @@ void AudioCDEncoder::findAllPlugins(KIO::SlaveBase *slave, QPtrList<AudioCDEncod
fileName = fileName.mid(0, fileName.find('.'));
void *function = loadPlugin(fileName);
if(function){
- void (*functionPointer)(KIO::SlaveBase *, QPtrList<AudioCDEncoder> &) = (void (*)(KIO::SlaveBase *slave, QPtrList<AudioCDEncoder> &encoders)) function;
+ void (*functionPointer)(KIO::SlaveBase *, TQPtrList<AudioCDEncoder> &) = (void (*)(KIO::SlaveBase *slave, TQPtrList<AudioCDEncoder> &encoders)) function;
functionPointer(slave, encoders);
}
}