summaryrefslogtreecommitdiffstats
path: root/atlantik/atlanticd/atlanticdaemon.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /atlantik/atlanticd/atlanticdaemon.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantik/atlanticd/atlanticdaemon.cpp')
-rw-r--r--atlantik/atlanticd/atlanticdaemon.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/atlantik/atlanticd/atlanticdaemon.cpp b/atlantik/atlanticd/atlanticdaemon.cpp
index 3fb80cf0..84a27925 100644
--- a/atlantik/atlanticd/atlanticdaemon.cpp
+++ b/atlantik/atlanticd/atlanticdaemon.cpp
@@ -14,9 +14,9 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
-#include <qtimer.h>
-#include <qsocket.h>
-#include <qstring.h>
+#include <tqtimer.h>
+#include <tqsocket.h>
+#include <tqstring.h>
#include <atlantic_core.h>
@@ -28,13 +28,13 @@
AtlanticDaemon::AtlanticDaemon()
{
m_serverSocket = new ServerSocket(1234, 100);
- connect(m_serverSocket, SIGNAL(newClient(AtlanticClient *)), this, SLOT(newClient(AtlanticClient *)));
+ connect(m_serverSocket, TQT_SIGNAL(newClient(AtlanticClient *)), this, TQT_SLOT(newClient(AtlanticClient *)));
m_atlanticCore = new AtlanticCore(this, "atlanticCore");
// Create socket for Monopigator
- m_monopigatorSocket = new QSocket();
- connect(m_monopigatorSocket, SIGNAL(connected()), this, SLOT(monopigatorConnected()));
+ m_monopigatorSocket = new TQSocket();
+ connect(m_monopigatorSocket, TQT_SIGNAL(connected()), this, TQT_SLOT(monopigatorConnected()));
// Register server
monopigatorRegister();
@@ -52,21 +52,21 @@ void AtlanticDaemon::monopigatorRegister()
void AtlanticDaemon::monopigatorConnected()
{
- QString get = "GET /register.php?host=capsi.com&port=1234&version=atlanticd-prototype HTTP/1.1\nHost: gator.monopd.net\n\n";
+ TQString get = "GET /register.php?host=capsi.com&port=1234&version=atlanticd-prototype HTTP/1.1\nHost: gator.monopd.net\n\n";
m_monopigatorSocket->writeBlock(get.latin1(), get.length());
m_monopigatorSocket->close();
// Monopigator clears old entries, so keep registering every 180s
- QTimer::singleShot(180000, this, SLOT(monopigatorRegister()));
+ TQTimer::singleShot(180000, this, TQT_SLOT(monopigatorRegister()));
}
void AtlanticDaemon::newClient(AtlanticClient *client)
{
m_clients.append(client);
- connect(client, SIGNAL(clientInput(AtlanticClient *, const QString &)), this, SLOT(clientInput(AtlanticClient *, const QString &)));
+ connect(client, TQT_SIGNAL(clientInput(AtlanticClient *, const TQString &)), this, TQT_SLOT(clientInput(AtlanticClient *, const TQString &)));
}
-void AtlanticDaemon::clientInput(AtlanticClient *client, const QString &data)
+void AtlanticDaemon::clientInput(AtlanticClient *client, const TQString &data)
{
}