syncthingtray/connector/syncthingconnectionsettings.h

30 lines
689 B
C
Raw Normal View History

#ifndef SYNCTHINGCONNECTIONSETTINGS_H
#define SYNCTHINGCONNECTIONSETTINGS_H
#include "./global.h"
#include <QByteArray>
#include <QSslError>
2017-05-01 03:34:43 +02:00
#include <QString>
namespace Data {
struct LIB_SYNCTHING_CONNECTOR_EXPORT SyncthingConnectionSettings {
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;
2016-10-07 15:11:25 +02:00
int reconnectInterval = 0;
QString httpsCertPath;
QList<QSslError> expectedSslErrors;
bool loadHttpsCert();
};
} // namespace Data
#endif // SYNCTHINGCONNECTIONSETTINGS_H