refs #768, authentication component improved

* access to user object
* show database name in UI
* init UI with user object at startup
This commit is contained in:
Klaus Basan
2016-10-18 20:19:49 +02:00
parent 80bbed96d4
commit 592e330278
5 changed files with 149 additions and 65 deletions

View File

@@ -39,6 +39,12 @@ namespace BlackCore
//! Shutdown
void gracefulShutdown();
//! DB user
BlackMisc::Network::CAuthenticatedUser getDbUser() const;
//! User authenticated
bool isUserAuthenticated() const;
public slots:
//! Try to login to authentication web service
BlackMisc::CStatusMessageList login(const QString &id, const QString &password);