syncthingtray/connector/syncthingconfig.h

28 lines
599 B
C
Raw Normal View History

2016-09-01 16:34:30 +02:00
#ifndef DATA_SYNCTHINGCONFIG_H
#define DATA_SYNCTHINGCONFIG_H
#include "./global.h"
2016-09-01 16:34:30 +02:00
#include <QString>
namespace Data {
2017-05-01 03:34:43 +02:00
struct LIB_SYNCTHING_CONNECTOR_EXPORT SyncthingConfig {
2016-09-01 16:34:30 +02:00
QString version;
bool guiEnabled = false;
bool guiEnforcesSecureConnection = false;
QString guiAddress;
QString guiUser;
QString guiPasswordHash;
QString guiApiKey;
static QString locateConfigFile();
static QString locateHttpsCertificate();
bool restore(const QString &configFilePath);
QString syncthingUrl() const;
2016-09-01 16:34:30 +02:00
};
} // namespace Data
#endif // DATA_SYNCTHINGCONFIG_H