Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / android / android_api / base / jni / JniOnResourceFoundListener.h
index 2cb9749..909cc4e 100644 (file)
@@ -1,43 +1,43 @@
-/*\r
-* //******************************************************************\r
-* //\r
-* // Copyright 2015 Intel Corporation.\r
-* //\r
-* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
-* //\r
-* // Licensed under the Apache License, Version 2.0 (the "License");\r
-* // you may not use this file except in compliance with the License.\r
-* // You may obtain a copy of the License at\r
-* //\r
-* //      http://www.apache.org/licenses/LICENSE-2.0\r
-* //\r
-* // Unless required by applicable law or agreed to in writing, software\r
-* // distributed under the License is distributed on an "AS IS" BASIS,\r
-* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* // See the License for the specific language governing permissions and\r
-* // limitations under the License.\r
-* //\r
-* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
-*/\r
-#include <jni.h>\r
-#include "JniOcStack.h"\r
-\r
-#ifndef _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener\r
-#define _Included_org_iotivity_base_OcPlatform_OnResourceFoundListener\r
-\r
-class JniOnResourceFoundListener\r
-{\r
-public:\r
-    JniOnResourceFoundListener(JNIEnv *env, jobject jListener,\r
-        RemoveListenerCallback removeListenerCallback);\r
-    ~JniOnResourceFoundListener();\r
-\r
-    void foundResourceCallback(std::shared_ptr<OC::OCResource> resource);\r
-\r
-private:\r
-    RemoveListenerCallback m_removeListenerCallback;\r
-    jweak m_jwListener;\r
-    void checkExAndRemoveListener(JNIEnv* env);\r
-};\r
-\r
-#endif\r
+/*
+* //******************************************************************
+* //
+* // 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 <jni.h>
+#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<OC::OCResource> resource);
+
+private:
+    RemoveListenerCallback m_removeListenerCallback;
+    jweak m_jwListener;
+    void checkExAndRemoveListener(JNIEnv* env);
+};
+
+#endif