1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

synchronization with native branch

This commit is contained in:
Nikolay Pultsin 2012-03-01 02:07:13 +00:00
parent 3580e2cd59
commit 09e35beb73
9 changed files with 490 additions and 0 deletions

View file

@ -30,6 +30,7 @@ private:
static JavaVM *ourJavaVM;
public:
static const char * const Class_java_util_Collection;
static const char * const Class_java_util_Locale;
static const char * const Class_ZLibrary;
static const char * const Class_ZLFile;
@ -38,12 +39,19 @@ public:
static const char * const Class_Book;
static const char * const Class_Tag;
static jmethodID MID_java_util_Collection_toArray;
static jmethodID SMID_java_util_Locale_getDefault;
static jmethodID MID_java_util_Locale_getLanguage;
static jmethodID SMID_ZLibrary_Instance;
static jmethodID MID_ZLibrary_getVersionName;
static jmethodID SMID_ZLFile_createFileByPath;
static jmethodID MID_ZLFile_children;
static jmethodID MID_ZLFile_size;
static jmethodID MID_ZLFile_exists;
static jmethodID MID_ZLFile_isDirectory;
static jmethodID MID_ZLFile_getPath;
static jmethodID SMID_PluginCollection_Instance;
@ -59,6 +67,7 @@ public:
static bool init(JavaVM* jvm);
static JNIEnv *getEnv();
static jobject createZLFile(JNIEnv *env, const std::string &path);
static bool extractJavaString(JNIEnv *env, jstring from, std::string &to);
static jstring createJavaString(JNIEnv* env, const std::string &str);
};