summaryrefslogtreecommitdiffstats
path: root/src/Viewer/Qt3DViewer/remotedeploymentreceiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Viewer/Qt3DViewer/remotedeploymentreceiver.h')
-rw-r--r--src/Viewer/Qt3DViewer/remotedeploymentreceiver.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Viewer/Qt3DViewer/remotedeploymentreceiver.h b/src/Viewer/Qt3DViewer/remotedeploymentreceiver.h
index 51b485ae..95744808 100644
--- a/src/Viewer/Qt3DViewer/remotedeploymentreceiver.h
+++ b/src/Viewer/Qt3DViewer/remotedeploymentreceiver.h
@@ -35,16 +35,15 @@
#include <QtCore/qdatastream.h>
#include <QtCore/qtemporarydir.h>
#include <QtNetwork/qtcpserver.h>
-#include <QtWidgets/qwidget.h>
class RemoteDeploymentReceiver : public QObject
{
Q_OBJECT
public:
- explicit RemoteDeploymentReceiver(QWidget *parent);
+ explicit RemoteDeploymentReceiver(int serverPort, QObject *parent);
~RemoteDeploymentReceiver();
- bool startServer();
+ QString startServer();
QHostAddress hostAddress() const { return m_hostAddress; }
int serverPort() const { return m_serverPort; }
@@ -52,7 +51,6 @@ public:
bool isConnected() const { return m_connection; }
bool isProjectDeployed() const { return m_connection && m_projectDeployed; }
QString fileName() const { return m_projectFile; }
- bool canceled() const { return m_canceled; }
Q_SIGNALS:
void projectChanged();
@@ -67,7 +65,6 @@ private Q_SLOTS:
void setPort(int value);
private:
- QWidget *m_mainWindow = nullptr;
QTcpServer *m_tcpServer = nullptr;
QTcpSocket *m_connection = nullptr;
QHostAddress m_hostAddress;
@@ -76,7 +73,6 @@ private:
QString m_projectFile;
bool m_projectDeployed;
int m_serverPort;
- bool m_canceled;
};
#endif // REMOTEDEPLOYMENTRECEIVER_H