32 lines
656 B
C++
32 lines
656 B
C++
#ifndef CLIENTCONNECTION_H
|
|
#define CLIENTCONNECTION_H
|
|
|
|
#include <QUrl>
|
|
#include <QObject>
|
|
|
|
#include "tunnelproxy/tunnelproxyremoteconnection.h"
|
|
|
|
using namespace remoteproxyclient;
|
|
|
|
class ClientConnection : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ClientConnection(const QUrl &serverUrl, const QString &name, const QUuid &uuid, const QUuid &serverUuid, bool insecure, QObject *parent = nullptr);
|
|
|
|
void connectToServer();
|
|
|
|
private:
|
|
QUrl m_serverUrl;
|
|
QString m_name;
|
|
QUuid m_uuid;
|
|
QUuid m_serverUuid;
|
|
bool m_insecure = false;
|
|
|
|
TunnelProxyRemoteConnection *m_remoteConnection = nullptr;
|
|
|
|
|
|
};
|
|
|
|
#endif // CLIENTCONNECTION_H
|