34 lines
832 B
C++
34 lines
832 B
C++
#ifndef CLOUDTRANSPORT_H
|
|
#define CLOUDTRANSPORT_H
|
|
|
|
#include "nymeatransportinterface.h"
|
|
|
|
#include <QObject>
|
|
|
|
class AWSClient;
|
|
namespace remoteproxyclient {
|
|
class RemoteProxyConnection;
|
|
}
|
|
|
|
class CloudTransport : public NymeaTransportInterface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CloudTransport(AWSClient *awsClient, QObject *parent = nullptr);
|
|
|
|
QStringList supportedSchemes() const override;
|
|
|
|
bool connect(const QUrl &url) override;
|
|
void disconnect() override;
|
|
ConnectionState connectionState() const override;
|
|
void sendData(const QByteArray &data) override;
|
|
|
|
void ignoreSslErrors(const QList<QSslError> &errors) override;
|
|
private:
|
|
AWSClient *m_awsClient = nullptr;
|
|
remoteproxyclient::RemoteProxyConnection *m_remoteproxyConnection = nullptr;
|
|
QDateTime m_timestamp;
|
|
};
|
|
|
|
#endif // CLOUDTRANSPORT_H
|