1 #ifndef QTDATASYNC_REMOTECONFIG_H 2 #define QTDATASYNC_REMOTECONFIG_H 4 #include <QtCore/qobject.h> 5 #include <QtCore/qurl.h> 6 #include <QtCore/qhash.h> 7 #include <QtCore/qshareddata.h> 8 #include <QtCore/qvariant.h> 10 #include "QtDataSync/qtdatasync_global.h" 14 class RemoteConfigPrivate;
21 Q_PROPERTY(
QUrl url READ url WRITE setUrl)
23 Q_PROPERTY(
QString accessKey READ accessKey WRITE setAccessKey)
27 Q_PROPERTY(
int keepaliveTimeout READ keepaliveTimeout WRITE setKeepaliveTimeout)
30 Q_PROPERTY(QVariantMap storedHeaders READ storedHeaders WRITE setStoredHeaders REVISION 2)
39 const HeaderHash &headers = {},
40 int keepaliveTimeout = 1);
42 RemoteConfig(
const RemoteConfig &other);
44 RemoteConfig(RemoteConfig &&other) noexcept;
48 RemoteConfig &operator=(
const RemoteConfig &other);
50 RemoteConfig &operator=(RemoteConfig &&other) noexcept;
53 bool operator==(
const RemoteConfig &other)
const;
55 bool operator!=(
const RemoteConfig &other)
const;
64 int keepaliveTimeout()
const;
67 void setUrl(
QUrl url);
69 void setAccessKey(
QString accessKey);
71 void setHeaders(HeaderHash headers);
73 void setKeepaliveTimeout(
int keepaliveTimeout);
78 QVariantMap storedHeaders()
const;
79 void setStoredHeaders(
const QVariantMap &map);
96 #endif // QTDATASYNC_REMOTECONFIG_H
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Q_DATASYNC_EXPORT QDataStream & operator<<(QDataStream &stream, const DeviceInfo &deviceInfo)
Stream operator to stream into a QDataStream.
The primary namespace of the QtDataSync library.
Q_DATASYNC_EXPORT QDataStream & operator>>(QDataStream &stream, DeviceInfo &deviceInfo)
Stream operator to stream out of a QDataStream.
A configuration on how to connect to a remote server.
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
QHash< QByteArray, QByteArray > HeaderHash