Showing the changes to interface/src/scripting/GlobalServicesScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -36,6 +36,10 @@ GlobalServicesScriptingInterface* GlobalServicesScriptingInterface::getInstance( · 35 unmodified lines | ||
| 36 | 36 | return &sharedInstance; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | +const QString& GlobalServicesScriptingInterface::getUsername() const { | |
| 40 | + return AccountManager::getInstance().getAccountInfo().getUsername(); | |
| 41 | +} | |
| 42 | + | |
| 39 | 43 | void GlobalServicesScriptingInterface::loggedOut() { |
| 40 | 44 | emit GlobalServicesScriptingInterface::disconnected(QString("logout")); |
| 41 | 45 | } |