X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=android%2Fandroid_api%2Fbase%2Fjni%2FJniOnResourceFoundListener.h;h=909cc4e967846e1d1f706f70cb41ce25064d51e5;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=2cb9749598671790960c6867d9a2e9d04dc1ad0d;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/android/android_api/base/jni/JniOnResourceFoundListener.h b/android/android_api/base/jni/JniOnResourceFoundListener.h index 2cb9749..909cc4e 100644 --- a/android/android_api/base/jni/JniOnResourceFoundListener.h +++ b/android/android_api/base/jni/JniOnResourceFoundListener.h @@ -1,43 +1,43 @@ -/* -* //****************************************************************** -* // -* // Copyright 2015 Intel Corporation. -* // -* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -* // -* // Licensed under the Apache License, Version 2.0 (the "License"); -* // you may not use this file except in compliance with the License. -* // You may obtain a copy of the License at -* // -* // http://www.apache.org/licenses/LICENSE-2.0 -* // -* // Unless required by applicable law or agreed to in writing, software -* // distributed under the License is distributed on an "AS IS" BASIS, -* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* // See the License for the specific language governing permissions and -* // limitations under the License. -* // -* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -*/ -#include -#include "JniOcStack.h" - -#ifndef _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener -#define _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener - -class JniOnResourceFoundListener -{ -public: - JniOnResourceFoundListener(JNIEnv *env, jobject jListener, - RemoveListenerCallback removeListenerCallback); - ~JniOnResourceFoundListener(); - - void foundResourceCallback(std::shared_ptr resource); - -private: - RemoveListenerCallback m_removeListenerCallback; - jweak m_jwListener; - void checkExAndRemoveListener(JNIEnv* env); -}; - -#endif +/* +* //****************************************************************** +* // +* // Copyright 2015 Intel Corporation. +* // +* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +* // +* // Licensed under the Apache License, Version 2.0 (the "License"); +* // you may not use this file except in compliance with the License. +* // You may obtain a copy of the License at +* // +* // http://www.apache.org/licenses/LICENSE-2.0 +* // +* // Unless required by applicable law or agreed to in writing, software +* // distributed under the License is distributed on an "AS IS" BASIS, +* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* // See the License for the specific language governing permissions and +* // limitations under the License. +* // +* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +*/ +#include +#include "JniOcStack.h" + +#ifndef _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener +#define _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener + +class JniOnResourceFoundListener +{ +public: + JniOnResourceFoundListener(JNIEnv *env, jobject jListener, + RemoveListenerCallback removeListenerCallback); + ~JniOnResourceFoundListener(); + + void foundResourceCallback(std::shared_ptr resource); + +private: + RemoveListenerCallback m_removeListenerCallback; + jweak m_jwListener; + void checkExAndRemoveListener(JNIEnv* env); +}; + +#endif