mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-14 21:23:52 +01:00
24 lines
568 B
C++
24 lines
568 B
C++
#ifndef IPCONNECTION_INTERNAL_H
|
|
#define IPCONNECTION_INTERNAL_H
|
|
|
|
#include "ipconnectionplugin.h"
|
|
|
|
//Simple class for creating & destroying a socket in the real-time thread
|
|
//Needed because sockets need to be created in the same thread that they're used
|
|
class IPConnection : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
IPConnection(IPconnectionConnection *connection);
|
|
//virtual ~IPConnection();
|
|
|
|
public slots:
|
|
|
|
void onOpenDevice(QString HostName, int Port, bool UseTCP);
|
|
void onCloseDevice(QAbstractSocket *ipSocket);
|
|
};
|
|
|
|
#endif // IPCONNECTION_INTERNAL_H
|