fix getUsername for AccountManager include in implementation

This commit is contained in:
Stephen Birarda 2015-03-09 16:32:09 -07:00
parent c9982e765e
commit dde84ac2b8
2 changed files with 5 additions and 1 deletions

View file

@ -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"));
} }

View file

@ -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();