summaryrefslogtreecommitdiffstats
path: root/arts/kde/kplayobjectcreator.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /arts/kde/kplayobjectcreator.cc
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/kde/kplayobjectcreator.cc')
-rw-r--r--arts/kde/kplayobjectcreator.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/arts/kde/kplayobjectcreator.cc b/arts/kde/kplayobjectcreator.cc
index 26b4308ab..b1969718e 100644
--- a/arts/kde/kplayobjectcreator.cc
+++ b/arts/kde/kplayobjectcreator.cc
@@ -25,7 +25,7 @@
#include "kplayobjectcreator.moc"
#include "kioinputstream_impl.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <kdebug.h>
@@ -38,13 +38,13 @@ KDE::PlayObjectCreator::~PlayObjectCreator()
{
}
-bool KDE::PlayObjectCreator::create(const KURL& url, bool createBUS, const QObject* receiver, const char* slot)
+bool KDE::PlayObjectCreator::create(const KURL& url, bool createBUS, const TQObject* receiver, const char* slot)
{
// no need to go any further, and I hate deep indentation
if (m_server.isNull() || url.isEmpty() )
return false;
- connect( this, SIGNAL( playObjectCreated( Arts::PlayObject ) ),
+ connect( this, TQT_SIGNAL( playObjectCreated( Arts::PlayObject ) ),
receiver, slot );
// check if the URL is a local file
@@ -57,8 +57,8 @@ bool KDE::PlayObjectCreator::create(const KURL& url, bool createBUS, const QObje
m_instream = Arts::KIOInputStream::_from_base(instream_impl);
// signal will be called once the ioslave knows the mime-type of the stream
- connect(instream_impl, SIGNAL(mimeTypeFound(const QString &)),
- this, SLOT(slotMimeType(const QString &)));
+ connect(instream_impl, TQT_SIGNAL(mimeTypeFound(const TQString &)),
+ this, TQT_SLOT(slotMimeType(const TQString &)));
// GO!
m_instream.openURL(url.url().latin1());
@@ -71,22 +71,22 @@ bool KDE::PlayObjectCreator::create(const KURL& url, bool createBUS, const QObje
// usual stuff if we have a local file
KMimeType::Ptr mimetype = KMimeType::findByURL(url);
emit playObjectCreated (
- m_server.createPlayObjectForURL(std::string(QFile::encodeName(url.path())),
+ m_server.createPlayObjectForURL(std::string(TQFile::encodeName(url.path())),
std::string(mimetype->name().latin1()),
createBUS)
);
return true;
}
-void KDE::PlayObjectCreator::slotMimeType(const QString& mimetype)
+void KDE::PlayObjectCreator::slotMimeType(const TQString& mimetype)
{
kdDebug( 400 ) << "slotMimeType called: " << mimetype << endl;
- QString mimetype_copy = mimetype;
+ TQString mimetype_copy = mimetype;
if ( mimetype_copy == "application/octet-stream" )
- mimetype_copy = QString("audio/x-mp3");
+ mimetype_copy = TQString("audio/x-mp3");
if (mimetype_copy == "application/x-zerosize")
emit playObjectCreated(Arts::PlayObject::null());