summaryrefslogtreecommitdiffstats
path: root/noatun/modules/net
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/net')
-rw-r--r--noatun/modules/net/net.cpp12
-rw-r--r--noatun/modules/net/net.h8
2 files changed, 10 insertions, 10 deletions
diff --git a/noatun/modules/net/net.cpp b/noatun/modules/net/net.cpp
index 5e3ba707..f5898c71 100644
--- a/noatun/modules/net/net.cpp
+++ b/noatun/modules/net/net.cpp
@@ -11,10 +11,10 @@ extern "C"
}
-Net::Net() : QServerSocket(7539, 10), Plugin()
+Net::Net() : TQServerSocket(7539, 10), Plugin()
{
mFDs.setAutoDelete(true);
- connect(napp->player(), SIGNAL(newSong()), SLOT(newSong()));
+ connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
}
Net::~Net()
@@ -24,7 +24,7 @@ Net::~Net()
void Net::newConnection(int fd)
{
- QSocket *s=new QSocket;
+ TQSocket *s=new QSocket;
s->setSocket(fd);
mFDs.append(s);
}
@@ -34,9 +34,9 @@ void Net::newSong()
if (!napp->player()->current())
return;
- for (QSocket *i=mFDs.first(); i!=0; i=mFDs.next())
+ for (TQSocket *i=mFDs.first(); i!=0; i=mFDs.next())
{
- QCString line;
+ TQCString line;
line=napp->player()->current().title().latin1();
line+='\n';
::write(i->socket(), (const void*)line.data(), line.length());
@@ -45,7 +45,7 @@ void Net::newSong()
void Net::closed()
{
- for (QSocket *i=mFDs.first(); i!=0; i=mFDs.next())
+ for (TQSocket *i=mFDs.first(); i!=0; i=mFDs.next())
{
if (sender()==i)
mFDs.removeRef(i);
diff --git a/noatun/modules/net/net.h b/noatun/modules/net/net.h
index 7d0fcb11..41c07438 100644
--- a/noatun/modules/net/net.h
+++ b/noatun/modules/net/net.h
@@ -3,11 +3,11 @@
#include <noatun/player.h>
#include <noatun/plugin.h>
-#include <qserversocket.h>
-#include <qsocket.h>
+#include <tqserversocket.h>
+#include <tqsocket.h>
#include <unistd.h>
-class Net : public QServerSocket, public Plugin
+class Net : public TQServerSocket, public Plugin
{
Q_OBJECT
@@ -24,7 +24,7 @@ protected:
virtual void newConnection(int socket);
private:
- QPtrList<QSocket> mFDs;
+ TQPtrList<TQSocket> mFDs;
};
#endif