summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/nowlistening/nlnoatun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/nowlistening/nlnoatun.cpp')
-rw-r--r--kopete/plugins/nowlistening/nlnoatun.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/plugins/nowlistening/nlnoatun.cpp b/kopete/plugins/nowlistening/nlnoatun.cpp
index 62bdc8ba..c9c504c2 100644
--- a/kopete/plugins/nowlistening/nlnoatun.cpp
+++ b/kopete/plugins/nowlistening/nlnoatun.cpp
@@ -37,14 +37,14 @@ void NLNoatun::update()
{
// Thanks mETz for telling me about Noatun's currentProperty()
m_playing = false;
- QString newTrack;
+ TQString newTrack;
// see if it's registered with DCOP
- QCString appname = find();
+ TQCString appname = find();
if ( !appname.isEmpty() )
{
// see if it's playing
- QByteArray data, replyData;
- QCString replyType;
+ TQByteArray data, replyData;
+ TQCString replyType;
if ( !m_client->call( appname, "Noatun", "state()", data,
replyType, replyData ) )
{
@@ -52,7 +52,7 @@ void NLNoatun::update()
}
else
{
- QDataStream reply( replyData, IO_ReadOnly );
+ TQDataStream reply( replyData, IO_ReadOnly );
if ( replyType == "int" ) {
int state = 0;
reply >> state;
@@ -64,7 +64,7 @@ void NLNoatun::update()
// Using properties
m_artist = currentProperty( appname, "author" );
m_album = currentProperty( appname, "album" );
- QString title = currentProperty( appname, "title" );
+ TQString title = currentProperty( appname, "title" );
// if properties not set ( no id3 tags... ) fallback to filename
if ( !title.isEmpty() )
newTrack = title;
@@ -75,8 +75,8 @@ void NLNoatun::update()
kdDebug( 14307 ) << "NLNoatun::update() DCOP error on " << appname
<< endl;
else {
- QDataStream reply( replyData, IO_ReadOnly );
- if ( replyType == "QString" ) {
+ TQDataStream reply( replyData, IO_ReadOnly );
+ if ( replyType == "TQString" ) {
reply >> newTrack;
} else
kdDebug( 14307 ) << "NLNoatun::update(), title() returned unexpected reply type!" << endl;
@@ -97,9 +97,9 @@ void NLNoatun::update()
kdDebug( 14307 ) << "NLNoatun::update() - noatun not found" << endl;
}
-QCString NLNoatun::find() const
+TQCString NLNoatun::find() const
{
- QCString app = "noatun";
+ TQCString app = "noatun";
if ( !m_client->isApplicationRegistered( app ) )
{
// looking for a registered app prefixed with 'app'
@@ -121,23 +121,23 @@ QCString NLNoatun::find() const
return app;
}
-QString NLNoatun::currentProperty( QCString appname, QString property ) const
+TQString NLNoatun::currentProperty( TQCString appname, TQString property ) const
{
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg( data, IO_WriteOnly );
- QString result = "";
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg( data, IO_WriteOnly );
+ TQString result = "";
arg << property;
if ( !m_client->call( appname, "Noatun",
- "currentProperty(QString)", data, replyType, replyData ) )
+ "currentProperty(TQString)", data, replyType, replyData ) )
{
kdDebug( 14307 ) << "NLNoatun::currentProperty() DCOP error on "
<< appname << endl;
}
else
{
- QDataStream reply( replyData, IO_ReadOnly );
- if ( replyType == "QString" )
+ TQDataStream reply( replyData, IO_ReadOnly );
+ if ( replyType == "TQString" )
{
reply >> result;
}