diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/net/net.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-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.cpp | 12 |
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); |