diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-17 13:25:27 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-01-17 13:25:27 +0100 |
commit | 7e0cc3b545a5b47a8770e55e5476e9646809a618 (patch) | |
tree | a57127d2f1e8ed14506f47f54e44f1e3028d8214 /platform/android/src/storage/default_file_source_peer.hpp | |
parent | ea273d4e75f51a6cb7a6fc7573c7722e34e730f1 (diff) | |
download | qtlocation-mapboxgl-upstream/7743-nativepeer-defaultfilesource.tar.gz |
[android] introduce generic Peer object for JNI wrappingupstream/7743-nativepeer-defaultfilesource
Diffstat (limited to 'platform/android/src/storage/default_file_source_peer.hpp')
-rw-r--r-- | platform/android/src/storage/default_file_source_peer.hpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/platform/android/src/storage/default_file_source_peer.hpp b/platform/android/src/storage/default_file_source_peer.hpp deleted file mode 100644 index c0f60447b3..0000000000 --- a/platform/android/src/storage/default_file_source_peer.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include <jni/jni.hpp> - -#include <memory> - -namespace mbgl { - -class DefaultFileSource; - -namespace android { - -class DefaultFileSourcePeer { -public: - static constexpr auto Name() { return "com/mapbox/mapboxsdk/storage/DefaultFileSource"; } - static jni::Class<DefaultFileSourcePeer> javaClass; - static void registerNative(jni::JNIEnv&); - - DefaultFileSourcePeer(jni::JNIEnv&, - jni::String cachePath, - jni::String assetRoot, - jni::jlong maximumCacheSize); - ~DefaultFileSourcePeer(); - - void setAPIBaseURL(jni::JNIEnv&, jni::String); - jni::String getAPIBaseURL(jni::JNIEnv&); - - void setAccessToken(jni::JNIEnv&, jni::String); - jni::String getAccessToken(jni::JNIEnv&); - - DefaultFileSource& getFileSource() { - return *native; - } - -private: - const std::unique_ptr<DefaultFileSource> native; -}; - -} // namespace android -} // namespace mbgl |