moved the platform-specific android code for the new ui
This commit is contained in:
parent
5b8a0881b7
commit
0a1359ed16
31 changed files with 854 additions and 764 deletions
16
client/platforms/android/authResultReceiver.cpp
Normal file
16
client/platforms/android/authResultReceiver.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "authResultReceiver.h"
|
||||
|
||||
AuthResultReceiver::AuthResultReceiver(QSharedPointer<AuthResultNotifier> ¬ifier) : m_notifier(notifier)
|
||||
{
|
||||
}
|
||||
|
||||
void AuthResultReceiver::handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data)
|
||||
{
|
||||
qDebug() << "receiverRequestCode" << receiverRequestCode << "resultCode" << resultCode;
|
||||
|
||||
if (resultCode == -1) { // ResultOK
|
||||
emit m_notifier->authSuccessful();
|
||||
} else {
|
||||
emit m_notifier->authFailed();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue