Imported Upstream version 1.0.1
[platform/upstream/iotivity.git] / service / easy-setup / sdk / mediator / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / EnrolleeState.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 /**
26  * It defines various states of the Enrollee device during easy setup process
27  */
28
29 public enum EnrolleeState {
30
31     /**
32      * Default state of the device
33      */
34     DEVICE_INIT_STATE,
35
36     /**
37      * Device will move to this state after successful on-boarding of the device
38      */
39     DEVICE_ON_BOARDED_STATE,
40
41     /**
42      * Device will move to this state once the on boarding begins
43      */
44     DEVICE_ON_BOARDING_STATE,
45
46     /**
47      * Device will move to this state once the on boarding is done
48      */
49     DEVICE_PROVISIONING_STATE,
50
51     /**
52      * Easy setup process is successful.
53      */
54     DEVICE_PROVISIONED_STATE,
55
56     /**
57      * This state is arbitrary one, any time device can come into this state
58      * Device will move to this state if the ownership transfer initiated  by the Application
59      */
60     DEVICE_OWNERSHIP_TRANSFERRING_STATE,
61
62     /**
63      * This state is arbitrary one, any time device can come into this state
64      * Device will move to this state if the ownership transfer is completed
65      */
66     DEVICE_OWNERSHIP_TRANSFERRED_STATE,
67
68
69     /**
70      * This state is arbitrary one, any time device can come into this state
71      * Device will move to this state once the Application factory reset the device
72      */
73     DEVICE_FACTORY_RESET_STATE,
74
75 }