diff options
author | Cameron Cawley | 2018-10-02 14:57:48 +0100 |
---|---|---|
committer | David Turner | 2018-10-05 00:10:27 +0100 |
commit | 539c3330a8dd4a0d47e3b422bf527a4d4f6a22e5 (patch) | |
tree | bbcdce724bf78c20ba41263f09cee250a5a61afb /backends/platform/android/jni.h | |
parent | 66153aa28ac26114bd051182f621799850d90a6f (diff) | |
download | scummvm-rg350-539c3330a8dd4a0d47e3b422bf527a4d4f6a22e5.tar.gz scummvm-rg350-539c3330a8dd4a0d47e3b422bf527a4d4f6a22e5.tar.bz2 scummvm-rg350-539c3330a8dd4a0d47e3b422bf527a4d4f6a22e5.zip |
ANDROID: Implement clipboard support
Diffstat (limited to 'backends/platform/android/jni.h')
-rw-r--r-- | backends/platform/android/jni.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/android/jni.h b/backends/platform/android/jni.h index 0798db448a..b88155f8b6 100644 --- a/backends/platform/android/jni.h +++ b/backends/platform/android/jni.h @@ -59,6 +59,9 @@ public: static void getDPI(float *values); static void displayMessageOnOSD(const char *msg); static bool openUrl(const char *url); + static bool hasTextInClipboard(); + static Common::String getTextFromClipboard(); + static bool setTextInClipboard(const Common::String &text); static bool isConnectionLimited(); static void showVirtualKeyboard(bool enable); static void addSysArchivesToSearchSet(Common::SearchSet &s, int priority); @@ -92,6 +95,9 @@ private: static jmethodID _MID_getDPI; static jmethodID _MID_displayMessageOnOSD; static jmethodID _MID_openUrl; + static jmethodID _MID_hasTextInClipboard; + static jmethodID _MID_getTextFromClipboard; + static jmethodID _MID_setTextInClipboard; static jmethodID _MID_isConnectionLimited; static jmethodID _MID_setWindowCaption; static jmethodID _MID_showVirtualKeyboard; @@ -127,6 +133,8 @@ private: static void enableZoning(JNIEnv *env, jobject self, jboolean enable); static void setPause(JNIEnv *env, jobject self, jboolean value); + + static jstring getCurrentCharset(JNIEnv *env, jobject self); }; inline bool JNI::haveSurface() { |