mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 18:26:26 +02:00
fix getUsername for AccountManager include in implementation
This commit is contained in:
parent
c9982e765e
commit
dde84ac2b8
2 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,10 @@ GlobalServicesScriptingInterface* GlobalServicesScriptingInterface::getInstance(
|
||||||
return &sharedInstance;
|
return &sharedInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString& GlobalServicesScriptingInterface::getUsername() const {
|
||||||
|
return AccountManager::getInstance().getAccountInfo().getUsername();
|
||||||
|
}
|
||||||
|
|
||||||
void GlobalServicesScriptingInterface::loggedOut() {
|
void GlobalServicesScriptingInterface::loggedOut() {
|
||||||
emit GlobalServicesScriptingInterface::disconnected(QString("logout"));
|
emit GlobalServicesScriptingInterface::disconnected(QString("logout"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class GlobalServicesScriptingInterface : public QObject {
|
||||||
public:
|
public:
|
||||||
static GlobalServicesScriptingInterface* getInstance();
|
static GlobalServicesScriptingInterface* getInstance();
|
||||||
|
|
||||||
const QString& getUsername() const { return AccountManager::getInstance().getAccountInfo().getUsername(); }
|
const QString& getUsername() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
DownloadInfoResult getDownloadInfo();
|
DownloadInfoResult getDownloadInfo();
|
||||||
|
|
Loading…
Reference in a new issue