FGx  1
mptelnet.h
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();
35  void on_telnet_disconnected();
36  //void foo_telnet_data(QString ip_address, QString reply); //QString &ip_address);
37 };
38 
39 #endif // MPTELNET_H
MpTelnet
Definition: mptelnet.h:16