refactoring: added classes for working with server configs
This commit is contained in:
parent
a2d30efaab
commit
2d22a74b22
34 changed files with 1441 additions and 91 deletions
19
client/core/models/servers/selfHostedServerConfig.h
Normal file
19
client/core/models/servers/selfHostedServerConfig.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef SELFHOSTEDSERVERCONFIG_H
|
||||
#define SELFHOSTEDSERVERCONFIG_H
|
||||
|
||||
#include "core/defs.h"
|
||||
#include "serverConfig.h"
|
||||
|
||||
class SelfHostedServerConfig : public ServerConfig
|
||||
{
|
||||
public:
|
||||
SelfHostedServerConfig(const QJsonObject &serverConfigObject);
|
||||
|
||||
QJsonObject toJson() const override;
|
||||
|
||||
QString name;
|
||||
|
||||
amnezia::ServerCredentials serverCredentials;
|
||||
};
|
||||
|
||||
#endif // SELFHOSTEDSERVERCONFIG_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue