2 * //******************************************************************
4 * // Copyright 2016 Samsung Electronics All Rights Reserved.
6 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
8 * // Licensed under the Apache License, Version 2.0 (the "License");
9 * // you may not use this file except in compliance with the License.
10 * // You may obtain a copy of the License at
12 * // http://www.apache.org/licenses/LICENSE-2.0
14 * // Unless required by applicable law or agreed to in writing, software
15 * // distributed under the License is distributed on an "AS IS" BASIS,
16 * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * // See the License for the specific language governing permissions and
18 * // limitations under the License.
20 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
23 #include "JniOcStack.h"
24 #include "JniOnDPDevicesFoundListener.h"
25 #include "OCDirectPairing.h"
28 #ifndef _Included_org_iotivity_base_OcDirectPairDevice
29 #define _Included_org_iotivity_base_OcDirectPairDevice
33 class JniOcDirectPairDevice
36 JniOcDirectPairDevice(std::shared_ptr<OCDirectPairing> directPairingDevice);
37 ~JniOcDirectPairDevice();
39 static JniOcDirectPairDevice* getJniOcDirectPairDevicePtr(JNIEnv *env, jobject thiz);
40 static jintArray JconvertIntVectorToJavaList(JNIEnv *env, std::vector<OCPrm_t> &vector);
42 std::shared_ptr<OCDirectPairing> getPtr();
43 std::string getHost();
44 std::vector<OCPrm_t> getPairingMethods();
45 OCConnectivityType connectivityType();
48 std::shared_ptr<OCDirectPairing> m_sharedDirectPairDevice;
51 /* DO NOT EDIT THIS FILE BEYOND THIS LINE - it is machine generated */
57 * Class: org_iotivity_base_OcDirectPairDevice
58 * Method: getDirectPairedDevices
59 * Signature: (Lorg/iotivity/base/OcDirectPairDevice/GetDirectPairedListener;)V
61 JNIEXPORT void JNICALL Java_org_iotivity_base_OcDirectPairDevice_getDirectPairedDevices
62 (JNIEnv *, jobject, jobject);
65 * Class: org_iotivity_base_OcDirectPairDevice
67 * Signature: ()Ljava/lang/String;
69 JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcDirectPairDevice_getHost
73 * Class: org_iotivity_base_OcDirectPairDevice
74 * Method: getPairingMethods
75 * Signature: ()Ljava/util/List;
77 JNIEXPORT jintArray JNICALL Java_org_iotivity_base_OcDirectPairDevice_getPairingMethods
81 * Class: org_iotivity_base_OcDirectPairDevice
82 * Method: doDirectPairing
83 * Signature: (Lorg/iotivity/base/OcDirectPairDevice;Lorg/iotivity/base/OcPrmType;
84 * Ljava/lang/String;Lorg/iotivity/base/OcDirectPairDevice/DirectPairingListener;)V
86 JNIEXPORT void JNICALL Java_org_iotivity_base_OcDirectPairDevice_doDirectPairing
87 (JNIEnv *, jobject, jobject, jint, jstring, jobject);
90 * Class: org_iotivity_base_OcDirectPairDevice
91 * Method: getConnectivityTypeN
94 JNIEXPORT jint JNICALL Java_org_iotivity_base_OcDirectPairDevice_getConnectivityTypeN
95 (JNIEnv *env, jobject thiz);