summaryrefslogtreecommitdiffstats
path: root/noatun/modules/net/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/net/net.cpp')
-rw-r--r--noatun/modules/net/net.cpp12
1 files changed, 6 insertions, 6 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);