replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / resource-encapsulation / android / service / src / main / jni / JniRcsRemoteResourceObject.h
1 /******************************************************************
2  *
3  * Copyright 2015 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ******************************************************************/
20
21 #ifndef JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_
22 #define JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_
23
24 #include <jni.h>
25
26 class JNIEnvWrapper;
27
28 void initRCSRemoteResourceObject(JNIEnvWrapper*);
29 void clearRCSRemoteResourceObject(JNIEnvWrapper*);
30
31 jobject newRemoteResourceObject(JNIEnvWrapper*);
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 JNIEXPORT jboolean JNICALL
38 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsMonitoring
39 (JNIEnv*, jobject);
40
41 JNIEXPORT jboolean JNICALL
42 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsCaching
43 (JNIEnv*, jobject);
44
45 JNIEXPORT jboolean JNICALL
46 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsObservable
47 (JNIEnv*, jobject);
48
49 JNIEXPORT void JNICALL
50 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStartMonitoring
51 (JNIEnv*, jobject, jobject);
52
53 JNIEXPORT void JNICALL
54 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStopMonitoring
55 (JNIEnv*, jobject);
56
57 JNIEXPORT jobject JNICALL
58 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetState
59 (JNIEnv*, jobject);
60
61 JNIEXPORT void JNICALL
62 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStartCaching
63 (JNIEnv*, jobject, jobject cacheUpdateListener);
64
65 JNIEXPORT void JNICALL
66 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStopCaching
67 (JNIEnv*, jobject);
68
69 JNIEXPORT jobject JNICALL
70 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetCacheState
71 (JNIEnv*, jobject);
72
73 JNIEXPORT jboolean JNICALL
74 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsCachedAvailable
75 (JNIEnv*, jobject);
76
77 JNIEXPORT jobject JNICALL
78 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetCachedAttributes
79 (JNIEnv*, jobject);
80
81 JNIEXPORT void JNICALL
82 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetRemoteAttributes
83 (JNIEnv*, jobject, jobject listener);
84
85 JNIEXPORT void JNICALL
86 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeSetRemoteAttributes
87 (JNIEnv*, jobject, jobject attrs, jobject listener);
88
89 JNIEXPORT jstring JNICALL
90 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetUri
91 (JNIEnv*, jobject);
92
93 JNIEXPORT jstring JNICALL
94 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetAddress
95 (JNIEnv*, jobject);
96
97 JNIEXPORT jobjectArray JNICALL
98 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetTypes
99 (JNIEnv*, jobject);
100
101 JNIEXPORT jobjectArray JNICALL
102 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetInterfaces
103 (JNIEnv*, jobject);
104
105 #ifdef __cplusplus
106 }
107 #endif
108 #endif // JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_