Resolved tizen build issue regarding ip network
[platform/upstream/iotivity.git] / service / easy-setup / mediator / richsdk / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / OnBoardingConfig.java
1 /**
2  * ***************************************************************
3  * <p/>
4  * Copyright 2015 Samsung Electronics All Rights Reserved.
5  * <p/>
6  * <p/>
7  * <p/>
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
11  * <p/>
12  * http://www.apache.org/licenses/LICENSE-2.0
13  * <p/>
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.
19  * <p/>
20  * ****************************************************************
21  */
22
23 package org.iotivity.service.easysetup.mediator;
24
25 import android.util.Log;
26
27 import org.iotivity.base.OcConnectivityType;
28
29 /**
30  * It contains configuration details about the connectivity type between the Enrollee device &
31  * Mediator device in order to perform on-boarding.
32  */
33
34 public interface OnBoardingConfig {
35     /**
36      * It provides constants for connectivity types used for on-boarding Enrollee device
37      */
38     public static enum ConnType {
39         // Note : Enum Ids should matched with Native Ids
40         WiFi(OcConnectivityType.CT_ADAPTER_IP.getValue()),
41         BLE(OcConnectivityType.CT_ADAPTER_GATT_BTLE.getValue());
42
43         private int mConnType;
44
45         ConnType(int connType) {
46             mConnType = connType;
47         }
48
49         public int getValue() {
50             return mConnType;
51         }
52
53     }
54
55     /**
56      * Gives configuration object specific to the on-boarding connectivity of the enrolling device.
57      *
58      * @return instance object of configuration according to connectivity type
59      */
60     public Object getConfig();
61
62     /**
63      * Gives connectivity type of on-boarding device
64      *
65      * @return on-boarding connectivity type
66      */
67     public ConnType getConnType();
68
69     public boolean isSecured();
70
71     public void setSecured(boolean isSecured);
72
73 }