Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "finger_print_auth.hpp"
- #include <QAndroidJniObject>
- #include <QtAndroid>
- #include <QDebug>
- finger_print_auth::finger_print_auth(QObject *parent) : QObject(parent)
- {
- qInfo()<<__func__<<": initialize finger_print_auth";
- /*auth_ = new QAndroidJniObject("com/tham/biometric/FingerPrintAuth",
- "(Landroid/app/Activity;Ljava/lang/String;)V",
- QtAndroid::androidActivity().object<jobject>(),
- QAndroidJniObject::fromString("Some sort of object jet key").object<jstring>());//*/
- QtAndroid::runOnAndroidThreadSync([this]()
- {
- auth_ = new QAndroidJniObject("com/tham/biometric/MainActivity");
- });
- qInfo()<<__func__<<": initialize finger_print_auth done";
- }
- int finger_print_auth::auth_start() const
- {
- qInfo()<<__func__;
- //auto const results = auth_->callMethod<jint>("authStart");
- //qInfo()<<__func__<<":"<<results;
- return 0;
- }
- int finger_print_auth::check_auth_available() const
- {
- qInfo()<<__func__;
- //auto const results = auth_->callMethod<jint>("checkAvailableState");
- //qInfo()<<__func__<<":"<<results;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement