36 lines · 1.0 KB · C++
RawDownload
////  AccountScriptingInterface.cpp//  interface/src/scripting////  Created by Stojce Slavkovski on 6/07/14.//  Copyright 2014 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include "AccountManager.h" #include "AccountScriptingInterface.h"#include "GlobalServicesScriptingInterface.h" AccountScriptingInterface* AccountScriptingInterface::getInstance() {    static AccountScriptingInterface sharedInstance;    return &sharedInstance;} bool AccountScriptingInterface::isLoggedIn() {    return GlobalServicesScriptingInterface::getInstance()->isLoggedIn();} void AccountScriptingInterface::logOut() {    GlobalServicesScriptingInterface::getInstance()->logOut();} bool AccountScriptingInterface::loggedIn() const {    return GlobalServicesScriptingInterface::getInstance()->loggedIn();} QString AccountScriptingInterface::getUsername() {    return GlobalServicesScriptingInterface::getInstance()->getUsername();}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t