Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
mptelnet.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // mptelnet.h
3 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4 // (c) 2010-2012
5 // Yves Sablonier, Pete Morgan
6 // Geoff McLane
7 // GNU GPLv2, see main.cpp and shipped licence.txt for further information
8 
9 #ifndef MPTELNET_H
10 #define MPTELNET_H
11 
12 #include <QObject>
13 #include <QtNetwork/QTcpSocket>
14 #include <QtCore/QByteArray>
15 
16 class MpTelnet : public QObject
17 {
18 Q_OBJECT
19 public:
20  explicit MpTelnet(QObject *parent = 0);
21 
22  void get_info(QString ip_address);
23  QString telnet_address;
24  QString telnet_reply;
25 
26 private:
27  QTcpSocket *socket;
28 
29 signals:
30  void telnet_data(QString telnet_address, QString reply); //QString ip_address); //, QString telnet_reply);
31 
32 public slots:
33  void on_telnet_connected();
34  void on_telnet_ready_read();
36  //void foo_telnet_data(QString ip_address, QString reply); //QString &ip_address);
37 };
38 
39 #endif // MPTELNET_H
QString telnet_reply
Definition: mptelnet.h:24
MpTelnet(QObject *parent=0)
Definition: mptelnet.cpp:14
void on_telnet_ready_read()
Definition: mptelnet.cpp:34
void on_telnet_disconnected()
Definition: mptelnet.cpp:39
void on_telnet_connected()
Definition: mptelnet.cpp:30
QTcpSocket * socket
Definition: mptelnet.h:27
void get_info(QString ip_address)
Definition: mptelnet.cpp:24
void telnet_data(QString telnet_address, QString reply)
QString telnet_address
Definition: mptelnet.h:23