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 ******************************************************************/
24 * @brief This file contains the declaration of JniAction class and its members related to JniAction.
27 #ifndef __JNI_ACTION_H_
28 #define __JNI_ACTION_H_
34 #include "jni_object.h"
35 #include "jni_capability.h"
39 * @brief This class provides a set of functions to get and set Action Class member variables
42 class JniAction : public JObject
48 JniAction(JNIEnv *env, jobject obj);
53 JniAction(JNIEnv *env);
62 * Retrieves target value from JniAction class object
64 * @param target - target value
66 * @return Boolean, true on success, otherwise false
69 bool getTarget(std::string &target);
72 * Sets target value of JniAction class object
74 * @param target - target value
76 * @return Boolean, true on success, otherwise false
79 bool setTarget(const std::string target);
82 * Retrieves capability values from JniAction class object
84 * @param capabilityList - capability list
86 * @return Boolean, true on success, otherwise false
88 bool getJniCapabilityValues(std::vector<OIC::Capability *> &capabilityList);
91 #endif //__JNI_ACTION_H_