Merge "Added an devel-API to check whether video texture is supported" into devel...
[platform/core/uifw/dali-adaptor.git] / adaptors / public-api / adaptor-framework / device-status.h
1 #ifndef __DALI_DEVICE_STATUS_H__
2 #define __DALI_DEVICE_STATUS_H__
3
4 /*
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 namespace Dali
22 {
23 /**
24  * @addtogroup dali_adaptor_framework
25  * @{
26  */
27
28 namespace DeviceStatus
29 {
30 /**
31  * @brief Struct for battery of the device.
32  * @SINCE_1_2.62
33  */
34 struct Battery
35 {
36   /**
37    * @brief Enumeration for battery status.
38    * @SINCE_1_2.62
39    */
40   enum Status
41   {
42     NORMAL,         ///< Battery is over 5% @SINCE_1_2.62
43     CRITICALLY_LOW, ///< Battery is under 5% @SINCE_1_2.62
44     POWER_OFF       ///< Battery is under 1% @SINCE_1_2.62
45   };
46 };
47
48 /**
49  * @brief Struct for memory of the device.
50  * @SINCE_1_2.62
51  */
52 struct Memory
53 {
54   /**
55    * @brief Enumeration for memory status.
56    * @SINCE_1_2.62
57    */
58   enum Status
59   {
60     NORMAL,        ///< Normal Status @SINCE_1_2.62
61     LOW,           ///< Memory is low but not critical @SINCE_1_2.62
62     CRITICALLY_LOW ///< Memory is critically low @SINCE_1_2.62
63   };
64 };
65
66 }// namespace DeviceStatus
67
68 /**
69  * @}
70  */
71 } // namespace Dali
72
73 #endif // __DALI_DEVICE_STATUS_H__