1 /******************************************************************
3 * Copyright 2015 Samsung Electronics All Rights Reserved.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 ******************************************************************/
22 * @file jni_capability.h
24 * @brief This file contains the utility functions for conversions from java to CPP
28 #ifndef __JNI_CAPABILITY_H_
29 #define __JNI_CAPABILITY_H_
34 #include <ActionSet.h>
35 #include "jni_object.h"
38 * @class JniCapability
39 * @brief This class provides a set of functions to get and set Capability Class member variables
42 class JniCapability : public JObject
48 JniCapability(JNIEnv *env, jobject obj);
53 JniCapability(JNIEnv *env);
62 * Retrieves Capability value from JniCapability class object
65 * [OUT] capability value
67 * @return Boolean, true on success, otherwise false
70 bool getJniCapabilityValue(std::string &capability);
73 * Sets Capability value of JniCapability class object
76 * [IN] capability value
78 * @return Boolean, true on success, otherwise false
81 bool setJniCapabilityValue(const std::string capability);
84 * Retrieves status of JniCapability class object
89 * @return Boolean, true on success, otherwise false
92 bool getJniCapabilityStatus(std::string &status);
95 * Sets status of JniCapability class object
100 * @return Boolean, true on success, otherwise false
103 bool setJniCapabilityStatus(const std::string status);
105 #endif //__JNI_CAPABILITY_H_