2013-04-05 22:46:56 +02:00
|
|
|
#ifndef IPCONNECTION_INTERNAL_H
|
|
|
|
#define IPCONNECTION_INTERNAL_H
|
|
|
|
|
|
|
|
#include "ipconnectionplugin.h"
|
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
// 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 {
|
2013-04-05 22:46:56 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
IPConnection(IPconnectionConnection *connection);
|
2013-05-19 16:37:30 +02:00
|
|
|
// virtual ~IPConnection();
|
2013-04-05 22:46:56 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void onOpenDevice(QString HostName, int Port, bool UseTCP);
|
|
|
|
void onCloseDevice(QAbstractSocket *ipSocket);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IPCONNECTION_INTERNAL_H
|