2016-09-29 21:19:54 +02:00
|
|
|
#ifndef SYNCTHINGCONNECTIONSETTINGS_H
|
|
|
|
#define SYNCTHINGCONNECTIONSETTINGS_H
|
|
|
|
|
2016-09-30 23:55:25 +02:00
|
|
|
#include "./global.h"
|
|
|
|
|
2016-09-29 21:19:54 +02:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <QSslError>
|
2017-05-01 03:34:43 +02:00
|
|
|
#include <QString>
|
2016-09-29 21:19:54 +02:00
|
|
|
|
|
|
|
namespace Data {
|
|
|
|
|
2016-09-30 23:55:25 +02:00
|
|
|
struct LIB_SYNCTHING_CONNECTOR_EXPORT SyncthingConnectionSettings {
|
2016-09-29 21:19:54 +02:00
|
|
|
QString label;
|
|
|
|
QString syncthingUrl;
|
|
|
|
bool authEnabled = false;
|
|
|
|
QString userName;
|
|
|
|
QString password;
|
|
|
|
QByteArray apiKey;
|
2018-10-25 18:22:07 +02:00
|
|
|
int trafficPollInterval = defaultTrafficPollInterval;
|
|
|
|
int devStatsPollInterval = defaultDevStatusPollInterval;
|
|
|
|
int errorsPollInterval = defaultErrorsPollInterval;
|
|
|
|
int reconnectInterval = defaultReconnectInterval;
|
2016-09-29 21:19:54 +02:00
|
|
|
QString httpsCertPath;
|
|
|
|
QList<QSslError> expectedSslErrors;
|
|
|
|
bool loadHttpsCert();
|
2018-10-25 18:22:07 +02:00
|
|
|
|
|
|
|
static constexpr int defaultTrafficPollInterval = 5000;
|
|
|
|
static constexpr int defaultDevStatusPollInterval = 60000;
|
|
|
|
static constexpr int defaultErrorsPollInterval = 30000;
|
|
|
|
static constexpr int defaultReconnectInterval = 0;
|
2016-09-29 21:19:54 +02:00
|
|
|
};
|
2017-09-17 21:48:15 +02:00
|
|
|
} // namespace Data
|
2016-09-29 21:19:54 +02:00
|
|
|
|
|
|
|
#endif // SYNCTHINGCONNECTIONSETTINGS_H
|