simpleCustomEvent.h 607 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef SIMPLECUSTOMEVENT_H
  2. #define SIMPLECUSTOMEVENT_H
  3. #include <QEvent>
  4. #include <QString>
  5. #include <QVariant>
  6. //#include <QAndroidJniEnvironment>
  7. class SimpleCustomEvent : public QEvent
  8. {
  9. public:
  10. SimpleCustomEvent(int requestCode = 0, int resultCode = 0, const QVariant &msg = QVariant());
  11. ~SimpleCustomEvent();
  12. static Type eventType();
  13. int m_requestCode;
  14. int m_resultCode;
  15. QVariant m_msg;
  16. private:
  17. static Type m_evType;
  18. };
  19. //void onFileManager(JNIEnv *env, jobject thiz,int result, jobjectArray fileUrl);
  20. bool registerNativeMethods();
  21. #endif // SIMPLECUSTOMEVENT_H