forked from blue/squawk
Accounts saving, tree status, sigint catching
This commit is contained in:
parent
d4afdd7a5f
commit
4a4ba47968
11 changed files with 251 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue