1
0
Fork 0
forked from blue/squawk

Accounts saving, tree status, sigint catching

This commit is contained in:
Blue 2019-04-03 00:58:43 +03:00
parent d4afdd7a5f
commit 4a4ba47968
11 changed files with 251 additions and 15 deletions

View file

@ -40,7 +40,7 @@ void Core::Account::connect()
void Core::Account::disconnect()
{
if (state != Shared::disconnected) {
client.disconnect();
client.disconnectFromServer();
state = Shared::disconnected;
emit connectionStateChanged(state);
}
@ -71,4 +71,17 @@ QString Core::Account::getName() const
return name;
}
QString Core::Account::getLogin() const
{
return login;
}
QString Core::Account::getPassword() const
{
return password;
}
QString Core::Account::getServer() const
{
return server;
}