projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tizen_5.0 codes into tizen_4.0
[platform/upstream/iotivity.git]
/
android
/
android_api
/
base
/
jni
/
JniOnObserveListener.h
diff --git
a/android/android_api/base/jni/JniOnObserveListener.h
b/android/android_api/base/jni/JniOnObserveListener.h
index
3fc478d
..
38b0b18
100644
(file)
--- a/
android/android_api/base/jni/JniOnObserveListener.h
+++ b/
android/android_api/base/jni/JniOnObserveListener.h
@@
-26,28
+26,17
@@
using namespace OC;
using namespace OC;
-class JniOcResource;
-#ifdef WITH_CLOUD
-class JniOcAccountManager;
-#endif
-
class JniOnObserveListener
{
public:
class JniOnObserveListener
{
public:
- JniOnObserveListener(JNIEnv *env, jobject jListener, JniOcResource* owner);
-#ifdef WITH_CLOUD
- JniOnObserveListener(JNIEnv *env, jobject jListener, JniOcAccountManager* owner);
-#endif
+ JniOnObserveListener(JNIEnv *env, jobject jListener, RemoveListenerCallback removeListener);
~JniOnObserveListener();
void onObserveCallback(const HeaderOptions headerOptions, const OCRepresentation& rep,
const int& eCode, const int& sequenceNumber);
jweak getJWListener();
private:
jweak m_jwListener;
~JniOnObserveListener();
void onObserveCallback(const HeaderOptions headerOptions, const OCRepresentation& rep,
const int& eCode, const int& sequenceNumber);
jweak getJWListener();
private:
jweak m_jwListener;
- JniOcResource* m_ownerResource;
-#ifdef WITH_CLOUD
- JniOcAccountManager* m_ownerAccountManager;
-#endif
+ RemoveListenerCallback m_removeListener;
void checkExAndRemoveListener(JNIEnv *env);
};
void checkExAndRemoveListener(JNIEnv *env);
};