summaryrefslogtreecommitdiffstats
path: root/kicker-applets/mediacontrol/jukInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/mediacontrol/jukInterface.cpp')
-rw-r--r--kicker-applets/mediacontrol/jukInterface.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kicker-applets/mediacontrol/jukInterface.cpp b/kicker-applets/mediacontrol/jukInterface.cpp
index 67e4b4a..a240fdd 100644
--- a/kicker-applets/mediacontrol/jukInterface.cpp
+++ b/kicker-applets/mediacontrol/jukInterface.cpp
@@ -33,12 +33,12 @@ JuKInterface::JuKInterface() : PlayerInterface(), mProc(0)
mJuKTimer = new TQTimer ( this, "mJukTimer" );
connect(mJuKTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateSlider()) );
- kapp->dcopClient()->setNotifications ( true );
+ tdeApp->dcopClient()->setNotifications ( true );
- connect(kapp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
+ connect(tdeApp->dcopClient(), TQ_SIGNAL(applicationRegistered(const TQCString&)),
TQ_SLOT(appRegistered(const TQCString&)) );
- connect(kapp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
+ connect(tdeApp->dcopClient(), TQ_SIGNAL(applicationRemoved(const TQCString&)),
TQ_SLOT(appRemoved(const TQCString&)));
TQTimer::singleShot(0, this, TQ_SLOT(myInit()));
@@ -46,7 +46,7 @@ JuKInterface::JuKInterface() : PlayerInterface(), mProc(0)
JuKInterface::~JuKInterface()
{
- kapp->dcopClient()->setNotifications(false);
+ tdeApp->dcopClient()->setNotifications(false);
delete mJuKTimer;
}
@@ -122,7 +122,7 @@ void JuKInterface::updateSlider ()
TQByteArray data, replyData;
TQCString replyType;
- if (kapp->dcopClient()->call(mAppId, "Player", "totalTime()", data,
+ if (tdeApp->dcopClient()->call(mAppId, "Player", "totalTime()", data,
replyType, replyData))
{
TQDataStream reply(replyData, IO_ReadOnly);
@@ -134,7 +134,7 @@ void JuKInterface::updateSlider ()
replyData = 0;
replyType = 0;
- if (kapp->dcopClient()->call(mAppId, "Player", "currentTime()", data,
+ if (tdeApp->dcopClient()->call(mAppId, "Player", "currentTime()", data,
replyType, replyData))
{
TQDataStream reply(replyData, IO_ReadOnly);
@@ -179,7 +179,7 @@ void JuKInterface::dropEvent(TQDropEvent* event)
// Use call instead of send to make sure the files are added
// before we try to play.
- if (!kapp->dcopClient()->call(mAppId, "Collection", "openFile(TQStringList)", data,
+ if (!tdeApp->dcopClient()->call(mAppId, "Collection", "openFile(TQStringList)", data,
replyType, replyData, true))
{
kdDebug(90200) << "Couldn't send drop to juk" << endl;
@@ -190,7 +190,7 @@ void JuKInterface::dropEvent(TQDropEvent* event)
TQDataStream strArg(strData, IO_WriteOnly);
strArg << *fileList.begin();
- if (!kapp->dcopClient()->send(mAppId, "Player", "play(TQString)", strData))
+ if (!tdeApp->dcopClient()->send(mAppId, "Player", "play(TQString)", strData))
kdDebug(90200) << "Couldn't send play command to juk" << endl;
}
}
@@ -213,8 +213,8 @@ void JuKInterface::jumpToTime( int sec )
TQDataStream arg(data, IO_WriteOnly);
arg << sec;
// Used in JuK shipping with KDE < 3.3
- //kapp->dcopClient()->send(mAppId, "Player", "setTime(int)", data);
- kapp->dcopClient()->send(mAppId, "Player", "seek(int)", data);
+ //tdeApp->dcopClient()->send(mAppId, "Player", "setTime(int)", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "seek(int)", data);
}
void JuKInterface::playpause()
@@ -222,37 +222,37 @@ void JuKInterface::playpause()
if (!findRunningJuK())
startPlayer("juk");
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "playPause()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "playPause()", data);
}
void JuKInterface::stop()
{
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "stop()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "stop()", data);
}
void JuKInterface::next()
{
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "forward()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "forward()", data);
}
void JuKInterface::prev()
{
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "back()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "back()", data);
}
void JuKInterface::volumeUp()
{
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "volumeUp()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "volumeUp()", data);
}
void JuKInterface::volumeDown()
{
TQByteArray data;
- kapp->dcopClient()->send(mAppId, "Player", "volumeDown()", data);
+ tdeApp->dcopClient()->send(mAppId, "Player", "volumeDown()", data);
}
const TQString JuKInterface::getTrackTitle() const
@@ -261,7 +261,7 @@ const TQString JuKInterface::getTrackTitle() const
TQByteArray data, replyData;
TQCString replyType;
- if (kapp->dcopClient()->call(mAppId, "Player", "playingString()",data,
+ if (tdeApp->dcopClient()->call(mAppId, "Player", "playingString()",data,
replyType, replyData))
{
TQDataStream reply(replyData, IO_ReadOnly);
@@ -277,7 +277,7 @@ const TQString JuKInterface::getTrackTitle() const
// FIXME: what if we have a dcop app named, let's say, 'jukfrontend'?
bool JuKInterface::findRunningJuK()
{
- QCStringList allApps = kapp->dcopClient()->registeredApplications();
+ QCStringList allApps = tdeApp->dcopClient()->registeredApplications();
TQValueList<TQCString>::const_iterator iterator;
for (iterator = allApps.constBegin(); iterator != allApps.constEnd(); ++iterator)
@@ -296,7 +296,7 @@ int JuKInterface::playingStatus()
TQByteArray data, replyData;
TQCString replyType;
- if (kapp->dcopClient()->call(mAppId, "Player", "status()", data, replyType,
+ if (tdeApp->dcopClient()->call(mAppId, "Player", "status()", data, replyType,
replyData))
{
int status = 0;