Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 272 → Rev 271

/QMK-Groundstation/trunk/Classes/cQMK_Server.cpp
17,7 → 17,6
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "cQMK_Server.h"
#include "ToolBox.h"
 
cQMK_Server::cQMK_Server()
{
65,17 → 64,10
}
}
 
void cQMK_Server::send_RawData(QString Data)
void cQMK_Server::slot_Connected()
{
Data = Data + "\n";
// qDebug("Verbunden");
 
QByteArray SendText = Data.toAscii();
 
TcpSocket->write(SendText);
}
 
void cQMK_Server::slot_Connected()
{
connect(TcpSocket, SIGNAL(readyRead()), SLOT(slot_ReadLine()));
connect(TcpSocket, SIGNAL(disconnected()),TcpSocket, SLOT(deleteLater()));
connect(TcpSocket, SIGNAL(disconnected()),this, SLOT(slot_Disconnect()));
85,6 → 77,7
 
void cQMK_Server::slot_Disconnect()
{
// qDebug("Verbindung getrennt ");
disconnect(TcpSocket, SIGNAL(disconnected()), 0, 0);
emit sig_Disconnected(1);
}
106,6 → 99,7
 
disconnect(TcpSocket, SIGNAL(disconnected()), 0, 0);
emit sig_Disconnected(2);
// qDebug("Error..!!");
}
 
void cQMK_Server::slot_ReadLine()
/QMK-Groundstation/trunk/Classes/cQMK_Server.h
35,7 → 35,6
void Connect(QString IP, int Port, QString User, QString Pass);
void Disconnect();
void NewPosition(sNaviString Pos);
void send_RawData(QString Data);
 
private:
//TCP-Socket
/QMK-Groundstation/trunk/Classes/cSettings.cpp
205,8 → 205,6
Setting.beginGroup("QMK-Server");
Server.QMKS_Login = Setting.value("Login", "").toString();
Server.QMKS_Password = Setting.value("Password", "").toString();
Server.QMKS_Host = Setting.value("Host", "nimari.de").toString();
Server.QMKS_Port = Setting.value("Port", "16441").toString();
Setting.endGroup();
 
}
259,8 → 257,6
Setting.beginGroup("QMK-Server");
Setting.setValue("Login", Server.QMKS_Login);
Setting.setValue("Password", Server.QMKS_Password);
Setting.setValue("Host", Server.QMKS_Host);
Setting.setValue("Port", Server.QMKS_Port);
Setting.endGroup();
}
 
/QMK-Groundstation/trunk/Classes/cSettings.h
63,8 → 63,6
bool ToGround;
QString QMKS_Login;
QString QMKS_Password;
QString QMKS_Host;
QString QMKS_Port;
};