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;
|
|
|
|
int trafficPollInterval = 2000;
|
|
|
|
int devStatsPollInterval = 60000;
|
2017-01-12 22:38:36 +01:00
|
|
|
int errorsPollInterval = 30000;
|
2018-05-01 22:31:00 +02:00
|
|
|
int reconnectInterval = 30000;
|
2016-09-29 21:19:54 +02:00
|
|
|
QString httpsCertPath;
|
|
|
|
QList<QSslError> expectedSslErrors;
|
|
|
|
bool loadHttpsCert();
|
|
|
|
};
|
2017-09-17 21:48:15 +02:00
|
|
|
} // namespace Data
|
2016-09-29 21:19:54 +02:00
|
|
|
|
|
|
|
#endif // SYNCTHINGCONNECTIONSETTINGS_H
|