summaryrefslogtreecommitdiffstats
path: root/noatun/modules/net/net.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/net/net.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);