From 5d1efcc49ba47eaf5919923f6f6ba82566d9baaf Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 29 May 2008 09:35:32 +0000 Subject: Rewrote the argument parser, for a more "The QT-Way"-like method. --- client/sendrecieve.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'client/sendrecieve.cc') diff --git a/client/sendrecieve.cc b/client/sendrecieve.cc index 0a664eb..95593c6 100644 --- a/client/sendrecieve.cc +++ b/client/sendrecieve.cc @@ -30,8 +30,6 @@ #include #include #include -#include -#include #include #include @@ -42,21 +40,16 @@ #include #endif -SendRecieve::SendRecieve() +SendRecieve::SendRecieve(QString host, quint16 port) : QObject() { + this->host = host; + this->port = port; has_result = false; } void SendRecieve::tcpConnect() { - QSettings settings("pracro.ini", QSettings::IniFormat); - - settings.beginGroup("server"); - QString host = settings.value("host").toString(); - int port = settings.value("port").toInt(); - settings.endGroup(); - printf("%s, %d\n", host.toStdString().c_str(), port); tcpsocket->connectToHost(host, port); tcpConnected = TCP_CONNECTING; -- cgit v1.2.3