X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=android%2Fandroid_api%2Fbase%2Fjni%2FJniOnGetListener.h;h=a37b4238a5c52508889f40134b69ab4fe02f86ea;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=af69f1b65f50365b974b5ada5dab5fadaf227372;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/android/android_api/base/jni/JniOnGetListener.h b/android/android_api/base/jni/JniOnGetListener.h index af69f1b..a37b423 100644 --- a/android/android_api/base/jni/JniOnGetListener.h +++ b/android/android_api/base/jni/JniOnGetListener.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 "JniOcStack.h" - -#ifndef _Included_org_iotivity_base_OcResource_OnGetListener -#define _Included_org_iotivity_base_OcResource_OnGetListener - -using namespace OC; - -class JniOcResource; - -class JniOnGetListener -{ -public: - JniOnGetListener(JNIEnv *env, jobject listener, JniOcResource* resource); - ~JniOnGetListener(); - void onGetCallback(const HeaderOptions& headerOptions, const OCRepresentation& rep, const int eCode); -private: - jweak m_jwListener; - JniOcResource* m_ownerResource; - void checkExAndRemoveListener(JNIEnv *env); -}; - +/* +* //****************************************************************** +* // +* // 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 "JniOcStack.h" + +#ifndef _Included_org_iotivity_base_OcResource_OnGetListener +#define _Included_org_iotivity_base_OcResource_OnGetListener + +using namespace OC; + +class JniOcResource; + +class JniOnGetListener +{ +public: + JniOnGetListener(JNIEnv *env, jobject listener, JniOcResource* resource); + ~JniOnGetListener(); + void onGetCallback(const HeaderOptions& headerOptions, const OCRepresentation& rep, const int eCode); +private: + jweak m_jwListener; + JniOcResource* m_ownerResource; + void checkExAndRemoveListener(JNIEnv *env); +}; + #endif \ No newline at end of file