mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
29 lines
616 B
C
29 lines
616 B
C
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QDebug>
|
||
|
|
||
|
#ifdef __ANDROID__
|
||
|
# include <QtAndroid>
|
||
|
# include <QtAndroidExtras/QAndroidJniObject>
|
||
|
#endif // __ANDROID__
|
||
|
|
||
|
struct AndroidImagePicker : QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
static void openPicker()
|
||
|
{
|
||
|
qDebug() << "Starting image picker intent";
|
||
|
|
||
|
#ifdef __ANDROID__
|
||
|
QAndroidJniObject::callStaticMethod<void>(
|
||
|
"org/retroshare/android/qml_app/RetroshareImagePicker",
|
||
|
"imagePickerIntent",
|
||
|
"()Landroid/content/Intent;" );
|
||
|
#endif // __ANDROID__
|
||
|
}
|
||
|
};
|