diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kioslave/audiocd/plugins/audiocdencoder.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/audiocd/plugins/audiocdencoder.cpp')
-rw-r--r-- | kioslave/audiocd/plugins/audiocdencoder.cpp | 26 |
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); } } |