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 <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QSslError>
|
|
|
|
|
|
|
|
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;
|
2016-10-07 15:11:25 +02:00
|
|
|
int reconnectInterval = 0;
|
2016-09-29 21:19:54 +02:00
|
|
|
QString httpsCertPath;
|
|
|
|
QList<QSslError> expectedSslErrors;
|
|
|
|
bool loadHttpsCert();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SYNCTHINGCONNECTIONSETTINGS_H
|