summaryrefslogtreecommitdiffstats
path: root/atlantik/atlanticd
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
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')
-rw-r--r--atlantik/atlanticd/atlanticclient.cpp12
-rw-r--r--atlantik/atlanticd/atlanticclient.h8
-rw-r--r--atlantik/atlanticd/atlanticdaemon.cpp20
-rw-r--r--atlantik/atlanticd/atlanticdaemon.h8
-rw-r--r--atlantik/atlanticd/main.cpp4
-rw-r--r--atlantik/atlanticd/serversocket.cpp2
-rw-r--r--atlantik/atlanticd/serversocket.h2
7 files changed, 28 insertions, 28 deletions
diff --git a/atlantik/atlanticd/atlanticclient.cpp b/atlantik/atlanticd/atlanticclient.cpp
index 0445165d..0e4e3e12 100644
--- a/atlantik/atlanticd/atlanticclient.cpp
+++ b/atlantik/atlanticd/atlanticclient.cpp
@@ -14,18 +14,18 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include "atlanticclient.h"
#include "atlanticclient.moc"
-AtlanticClient::AtlanticClient(QObject *parent, const char *name) : QSocket(parent, name)
+AtlanticClient::AtlanticClient(TQObject *parent, const char *name) : TQSocket(parent, name)
{
- connect(this, SIGNAL(readyRead()), this, SLOT(readData()));
+ connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData()));
}
-void AtlanticClient::sendData(const QString &data)
+void AtlanticClient::sendData(const TQString &data)
{
writeBlock(data.latin1(), data.length());
}
@@ -37,7 +37,7 @@ void AtlanticClient::readData()
emit clientInput(this, readLine());
// There might be more data
- QTimer::singleShot(0, this, SLOT(readData()));
+ TQTimer::singleShot(0, this, TQT_SLOT(readData()));
}
else
{
diff --git a/atlantik/atlanticd/atlanticclient.h b/atlantik/atlanticd/atlanticclient.h
index 7b47b0f3..8f63b88c 100644
--- a/atlantik/atlanticd/atlanticclient.h
+++ b/atlantik/atlanticd/atlanticclient.h
@@ -17,20 +17,20 @@
#ifndef CLIENT_H
#define CLIENT_H
-#include <qsocket.h>
+#include <tqsocket.h>
class AtlanticClient : public QSocket
{
Q_OBJECT
public:
- AtlanticClient(QObject *parent = 0, const char *name = 0);
- void sendData(const QString &data);
+ AtlanticClient(TQObject *parent = 0, const char *name = 0);
+ void sendData(const TQString &data);
private slots:
void readData();
signals:
- void clientInput(AtlanticClient *client, const QString &data);
+ void clientInput(AtlanticClient *client, const TQString &data);
};
#endif
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)
{
}
diff --git a/atlantik/atlanticd/atlanticdaemon.h b/atlantik/atlanticd/atlanticdaemon.h
index 729a960e..17e41898 100644
--- a/atlantik/atlanticd/atlanticdaemon.h
+++ b/atlantik/atlanticd/atlanticdaemon.h
@@ -17,7 +17,7 @@
#ifndef ATLANTIC_ATLANTICDAEMON_H
#define ATLANTIC_ATLANTICDAEMON_H
-#include <qptrlist.h>
+#include <tqptrlist.h>
class QSocket;
@@ -36,13 +36,13 @@ private slots:
void monopigatorRegister();
void monopigatorConnected();
void newClient(AtlanticClient *client);
- void clientInput(AtlanticClient *client, const QString &data);
+ void clientInput(AtlanticClient *client, const TQString &data);
private:
- QSocket *m_monopigatorSocket;
+ TQSocket *m_monopigatorSocket;
ServerSocket *m_serverSocket;
AtlanticCore *m_atlanticCore;
- QPtrList<AtlanticClient> m_clients;
+ TQPtrList<AtlanticClient> m_clients;
};
#endif
diff --git a/atlantik/atlanticd/main.cpp b/atlantik/atlanticd/main.cpp
index 235dcd00..12905df8 100644
--- a/atlantik/atlanticd/main.cpp
+++ b/atlantik/atlanticd/main.cpp
@@ -14,7 +14,7 @@
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
-#include <qapplication.h>
+#include <tqapplication.h>
#include "atlanticdaemon.h"
@@ -22,6 +22,6 @@ int main(int argc, char *argv[])
{
new AtlanticDaemon();
- QApplication qapplication(argc, argv);
+ TQApplication qapplication(argc, argv);
qapplication.exec();
}
diff --git a/atlantik/atlanticd/serversocket.cpp b/atlantik/atlanticd/serversocket.cpp
index 2056a754..0ddd4744 100644
--- a/atlantik/atlanticd/serversocket.cpp
+++ b/atlantik/atlanticd/serversocket.cpp
@@ -17,7 +17,7 @@
#include "atlanticclient.h"
#include "serversocket.h"
-ServerSocket::ServerSocket(int port, int backlog) : QServerSocket(port, backlog)
+ServerSocket::ServerSocket(int port, int backlog) : TQServerSocket(port, backlog)
{
}
diff --git a/atlantik/atlanticd/serversocket.h b/atlantik/atlanticd/serversocket.h
index fce347e9..cc31c8ab 100644
--- a/atlantik/atlanticd/serversocket.h
+++ b/atlantik/atlanticd/serversocket.h
@@ -17,7 +17,7 @@
#ifndef SERVERSOCKET_H
#define SERVERSOCKET_H
-#include <qserversocket.h>
+#include <tqserversocket.h>
class AtlanticClient;