mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 02:57:00 +02:00
fixing typos in callback implementation
This commit is contained in:
parent
ed39b43d3b
commit
39a68a88f0
4 changed files with 2 additions and 27 deletions
|
@ -46,10 +46,6 @@ LoginDialog::LoginDialog(QQuickItem *parent) : OffscreenQmlDialog(parent) {
|
||||||
this, &LoginDialog::handleLoginFailed);
|
this, &LoginDialog::handleLoginFailed);
|
||||||
connect(qApp, &Application::loginDialogFocusEnabled, this, &LoginDialog::focusEnabled);
|
connect(qApp, &Application::loginDialogFocusEnabled, this, &LoginDialog::focusEnabled);
|
||||||
connect(qApp, &Application::loginDialogFocusDisabled, this, &LoginDialog::focusDisabled);
|
connect(qApp, &Application::loginDialogFocusDisabled, this, &LoginDialog::focusDisabled);
|
||||||
if (auto oculusPlatformPlugin = PluginManager::getInstance()->getOculusPlatformPlugin()) {
|
|
||||||
connect(oculusPlatformPlugin.get(), &OculusPlatformPlugin::loginReady, this, &LoginDialog::onLoginThroughOculusReady);
|
|
||||||
connect(oculusPlatformPlugin.get(), &OculusPlatformPlugin::linkAccountReady, this, &LoginDialog::onLinkOculusReady);
|
|
||||||
}
|
|
||||||
connect(this, SIGNAL(dismissedLoginDialog()), qApp, SLOT(onDismissedLoginDialog()));
|
connect(this, SIGNAL(dismissedLoginDialog()), qApp, SLOT(onDismissedLoginDialog()));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
//
|
|
||||||
// Created by Wayne Chen on 2018/12/20
|
|
||||||
// Copyright 2018 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 "OculusPlatformPlugin.h"
|
|
||||||
|
|
||||||
OculusPlatformPlugin::OculusPlatformPlugin() {
|
|
||||||
}
|
|
||||||
|
|
||||||
OculusPlatformPlugin::~OculusPlatformPlugin() {
|
|
||||||
}
|
|
|
@ -15,17 +15,11 @@ using NonceUserIDCallback = std::function<void(QString, QString)>;
|
||||||
|
|
||||||
class OculusPlatformPlugin {
|
class OculusPlatformPlugin {
|
||||||
public:
|
public:
|
||||||
OculusPlatformPlugin();
|
virtual ~OculusPlatformPlugin() = default;
|
||||||
virtual ~OculusPlatformPlugin();
|
|
||||||
|
|
||||||
virtual const QString getName() const = 0;
|
virtual const QString getName() const = 0;
|
||||||
|
|
||||||
virtual void requestNonceAndUserID(NonceUserIDCallback callback) = 0;
|
virtual void requestNonceAndUserID(NonceUserIDCallback callback) = 0;
|
||||||
|
|
||||||
virtual void handleOVREvents() = 0;
|
virtual void handleOVREvents() = 0;
|
||||||
|
|
||||||
signals:
|
|
||||||
void loginReady(QString nonce, QString userID);
|
|
||||||
void linkAccountReady(QString nonce, QString userID);
|
|
||||||
void createAccountReady(QString nonce, QString userID);
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -91,8 +91,7 @@ void OculusAPIPlugin::handleOVREvents() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_nonceChanged) {
|
if (_nonceChanged) {
|
||||||
_nonceUserIDCallback(_nonce, _user);`
|
_nonceUserIDCallback(_nonce, _user);
|
||||||
_loginState = LoginState::INVALID_STATE;
|
|
||||||
_nonce = _user = "";
|
_nonce = _user = "";
|
||||||
_nonceChanged = false;
|
_nonceChanged = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue