summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteserverconnection.h
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2014-11-26 14:39:17 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-28 11:14:07 +0100
commit5b5ee638f65412bcff020c4e0869bc48edce0daa (patch)
tree857b3fe82a0671d5037a235799edfa4211e76177 /src/libs/installer/remoteserverconnection.h
parentafef6d5d5a67bc47023ee41173106568c154a1ce (diff)
Remove pointer, superfluous members. Use signals and slots.
Use signals and slots to tell about the shutdown request. Instead of passing around the server pointer, give the port and key as parameter. Change-Id: I0ad1667aa1caee4ffdee8b6951336f2254974810 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/remoteserverconnection.h')
-rw-r--r--src/libs/installer/remoteserverconnection.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/installer/remoteserverconnection.h b/src/libs/installer/remoteserverconnection.h
index 1e576905e..13df09576 100644
--- a/src/libs/installer/remoteserverconnection.h
+++ b/src/libs/installer/remoteserverconnection.h
@@ -48,7 +48,6 @@ QT_END_NAMESPACE
namespace QInstaller {
class QProcessSignalReceiver;
-class RemoteServer;
class RemoteServerConnection : public QThread
{
@@ -56,10 +55,13 @@ class RemoteServerConnection : public QThread
Q_DISABLE_COPY(RemoteServerConnection)
public:
- RemoteServerConnection(qintptr socketDescriptor, RemoteServer *parent);
+ RemoteServerConnection(qintptr socketDescriptor, const QString &authorizationKey);
void run() Q_DECL_OVERRIDE;
+signals:
+ void shutdownRequested();
+
private:
template <typename T>
void sendData(QDataStream &stream, const T &arg);
@@ -73,7 +75,7 @@ private:
QProcess *m_process;
QSettings *m_settings;
QFSFileEngine *m_engine;
- QPointer<RemoteServer> m_server;
+ QString m_authorizationKey;
QProcessSignalReceiver *m_signalReceiver;
};