Server settings are read from QSettings and applied if they are changed.
This commit is contained in:
@ -13,7 +13,6 @@ ServerCommunicator::ServerCommunicator(QObject* parent)
|
||||
m_netManager.setAutoDeleteReplies(true);
|
||||
m_restManager = std::make_shared<QRestAccessManager>(&m_netManager);
|
||||
m_serviceApi = std::make_shared<QNetworkRequestFactory>();
|
||||
setUrl(baseUrl);
|
||||
}
|
||||
|
||||
bool ServerCommunicator::sslSupported() {
|
||||
@ -96,3 +95,12 @@ void ServerCommunicator::deleteItem(const QString& id) {
|
||||
reply->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
void ServerCommunicator::setServerConfiguration(const QString url,
|
||||
const QString email,
|
||||
const QString password) {
|
||||
setUrl(url);
|
||||
|
||||
m_email = email;
|
||||
m_password = password;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user