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 | |
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')
-rw-r--r-- | noatun/modules/net/net.cpp | 12 | ||||
-rw-r--r-- | noatun/modules/net/net.h | 8 |
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 |