forked from lubuwest/Friendiqa
24 lines
507 B
C++
24 lines
507 B
C++
#ifndef IMAGEPICKANDROID_H
|
|
#define IMAGEPICKANDROID_H
|
|
#include <QObject>
|
|
#include <QtAndroidExtras>
|
|
|
|
#include <QDebug>
|
|
|
|
class imageSelectAndroid : public QObject, public QAndroidActivityResultReceiver
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
imageSelectAndroid();
|
|
static imageSelectAndroid *instance();
|
|
void searchImage();
|
|
|
|
virtual void handleActivityResult(int receiverRequestCode, int resultCode, const QAndroidJniObject & data);
|
|
|
|
signals:
|
|
void imageselected(QString);
|
|
};
|
|
|
|
#endif // IMAGEPICKANDROID_H
|