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 ******************************************************************/
23 * This file contains the declaration of JniAction class and
24 * its members related to JniAction.
33 #include "jni_object.h"
34 #include "jni_capability.h"
37 * This class provides a set of functions to get and
38 * set Action Class member variables.
40 class JniAction : public JObject
46 JniAction(JNIEnv *env, jobject obj);
51 JniAction(JNIEnv *env);
59 * Retrieves target value from JniAction class object.
61 * @param target - target value
63 * @return Boolean, true on success, otherwise false
65 bool getTarget(std::string &target);
68 * Sets target value of JniAction class object.
70 * @param target - target value
72 * @return Boolean, true on success, otherwise false
74 bool setTarget(const std::string target);
77 * Retrieves capability values from JniAction class object.
79 * @param capabilityList - capability list
81 * @return Boolean, true on success, otherwise false
83 bool getJniCapabilityValues(std::vector<OIC::Capability *> &capabilityList);
86 #endif //JNI_ACTION_H_