This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-remoteproxy/tunnelclient/clientconnection.h

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