##// END OF EJS Templates
New Plugin Manager and interface to remove all the previous crap!...
New Plugin Manager and interface to remove all the previous crap! Let's use Qt plugin API and make it much simpler.

File last commit:

r0:1aa783210b8e default
r118:de85e8465e67 tip 1.0
Show More
tcp_terminal_client.h
31 lines | 605 B | text/x-c | CLexer
/ src / common / tcp_terminal_client.h
Jeandet Alexis
First init of SocExplorer Repository.
r0 #ifndef TCP_TERMINAL_CLIENT_H
#define TCP_TERMINAL_CLIENT_H
#include <QObject>
#include <QTcpSocket>
#include <QProcess>
#include <QThread>
#include <QMutex>
class TCP_Terminal_Client : public QObject
{
Q_OBJECT
public:
explicit TCP_Terminal_Client(QObject *parent = 0);
void connectToServer(const QString& IP,int port);
void connectToServer();
bool isConnected();
void sendText(const QString& text);
void startServer();
void startServer(int port);
signals:
public slots:
private:
QTcpSocket* soc;
QProcess* ServerProc;
};
#endif // TCP_TERMINAL_CLIENT_H