// // AccountScriptingInterface.h // 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 // #ifndef hifi_AccountScriptingInterface_h #define hifi_AccountScriptingInterface_h #include class AccountScriptingInterface : public QObject { Q_OBJECT Q_PROPERTY(QString username READ getUsername NOTIFY usernameChanged) signals: void usernameChanged(); public slots: static AccountScriptingInterface* getInstance(); QString getUsername(); bool isLoggedIn(); bool checkAndSignalForAccessToken(); }; #endif // hifi_AccountScriptingInterface_h