summaryrefslogtreecommitdiffstats
path: root/noatun/library/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/plugin.cpp')
-rw-r--r--noatun/library/plugin.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/noatun/library/plugin.cpp b/noatun/library/plugin.cpp
index e9090609..3c5b6f5d 100644
--- a/noatun/library/plugin.cpp
+++ b/noatun/library/plugin.cpp
@@ -1,5 +1,5 @@
-#include <qtimer.h>
-#include <qfile.h>
+#include <tqtimer.h>
+#include <tqfile.h>
#include <artsflow.h>
#include <vector>
#include <artsflow.h>
@@ -46,7 +46,7 @@ TimerThingy::TimerThingy(Visualization *vis)
{
}
-void TimerThingy::timerEvent(QTimerEvent *)
+void TimerThingy::timerEvent(TQTimerEvent *)
{
mVis->timeout();
}
@@ -88,15 +88,15 @@ Visualization::Visualization(int timeout, int pid)
int parent=pid ? pid : getppid();
if (getenv("NOATUN_PID"))
- parent = QString::fromLatin1(getenv("NOATUN_PID")).toInt();
+ parent = TQString::fromLatin1(getenv("NOATUN_PID")).toInt();
DCOPClient c;
c.attach();
- QCString appids[2];
- appids[0]=QString("noatun-%1").arg(parent).local8Bit();
+ TQCString appids[2];
+ appids[0]=TQString("noatun-%1").arg(parent).local8Bit();
appids[1]="noatun";
- QCString &appid=appids[0];
+ TQCString &appid=appids[0];
if (!internalVis && c.isApplicationRegistered(appids[0]))
{
@@ -115,10 +115,10 @@ Visualization::Visualization(int timeout, int pid)
}
{
- QByteArray replyData;
- QCString replyType;
+ TQByteArray replyData;
+ TQCString replyType;
- if (!c.call(appid, "Noatun", "visStack()", QByteArray(), replyType, replyData))
+ if (!c.call(appid, "Noatun", "visStack()", TQByteArray(), replyType, replyData))
{
kdDebug(66666) << "Error communicating to parent noatun" << endl;
}
@@ -127,8 +127,8 @@ Visualization::Visualization(int timeout, int pid)
initDispatcher();
mServer=new Arts::SoundServerV2;
*mServer = Arts::Reference("global:Arts_SoundServerV2");
- QDataStream reply(replyData, IO_ReadOnly);
- QCString result;
+ TQDataStream reply(replyData, IO_ReadOnly);
+ TQCString result;
reply >> result;
mVisualizationStack=result;
}
@@ -213,8 +213,8 @@ FFTScope::FFTScope(int interval, int pid) : Visualization(interval, pid)
float FFTScope::magic(int bands)
{
-/* QString path=locate("data", "noatun/magictable");
- QFile magic(path);
+/* TQString path=locate("data", "noatun/magictable");
+ TQFile magic(path);
if (!magic.open(IO_ReadOnly | IO_Raw))
return 0;
if (!magic.at(bands*sizeof(float)))
@@ -473,7 +473,7 @@ void StereoScope::setSamples(int len)
-NoatunListener::NoatunListener(QObject *parent) : QObject(parent)
+NoatunListener::NoatunListener(TQObject *parent) : TQObject(parent)
{ }
NoatunListener::~NoatunListener()
@@ -495,7 +495,7 @@ void NoatunListenerNotif::message()
}
-ExitNotifier::ExitNotifier(int pid, QObject *parent) : NoatunListener(parent)
+ExitNotifier::ExitNotifier(int pid, TQObject *parent) : NoatunListener(parent)
{
mNotif=new NoatunListenerNotif(this);
@@ -503,8 +503,8 @@ ExitNotifier::ExitNotifier(int pid, QObject *parent) : NoatunListener(parent)
c.attach();
- QCString appids[2];
- appids[0]=QString("noatun-%1").arg(pid).local8Bit();
+ TQCString appids[2];
+ appids[0]=TQString("noatun-%1").arg(pid).local8Bit();
appids[1]="noatun";
appid=appids[0];
@@ -521,18 +521,18 @@ ExitNotifier::ExitNotifier(int pid, QObject *parent) : NoatunListener(parent)
return;
}
- QByteArray replyData;
- QCString replyType;
+ TQByteArray replyData;
+ TQCString replyType;
- QCString sessionName;
+ TQCString sessionName;
- if (!c.call(appid, "Noatun", "session()", QByteArray(), replyType, replyData))
+ if (!c.call(appid, "Noatun", "session()", TQByteArray(), replyType, replyData))
{
kdDebug(66666) << "Error communicating to parent noatun" << endl;
}
else
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
reply >> sessionName;
}
@@ -544,17 +544,17 @@ ExitNotifier::ExitNotifier(int pid, QObject *parent) : NoatunListener(parent)
ExitNotifier::~ExitNotifier()
{
- QByteArray replyData;
- QCString replyType;
+ TQByteArray replyData;
+ TQCString replyType;
- QCString sessionName;
+ TQCString sessionName;
DCOPClient c;
c.attach();
- if (c.call(appid, "Noatun", "session()", QByteArray(), replyType, replyData))
+ if (c.call(appid, "Noatun", "session()", TQByteArray(), replyType, replyData))
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
reply >> sessionName;
Noatun::Session session=Arts::Reference(sessionName);
@@ -563,10 +563,10 @@ ExitNotifier::~ExitNotifier()
delete mNotif;
}
-BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, QObject *parent)
- : QObject(parent)
+BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent)
+ : TQObject(parent)
{
- connect(listener, SIGNAL(event()), SLOT(event()));
+ connect(listener, TQT_SIGNAL(event()), TQT_SLOT(event()));
mValue=value;
}