Tizen 2.4 SDK Rev6 Release
[apps/home/minicontrol.git] / include / minicontrol-error.h
1 /*
2  * Copyright (c)  2013-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef _MINICTRL_ERROR_H_
18 #define _MINICTRL_ERROR_H_
19
20 #include <tizen_error.h>
21
22 /**
23  * @file minicontrol-error.h
24  * @brief Minicontrol library error type.
25  */
26
27 /**
28  * @addtogroup MINICONTROL_LIBRARY
29  * @{
30  */
31
32 /**
33  * @brief Enumeration for describing error code of minicontrol library.
34  * @since_tizen 2.4
35  */
36 typedef enum _minicontrol_error {
37         MINICONTROL_ERROR_NONE = TIZEN_ERROR_NONE,  /**< MiniControl error none */
38         MINICONTROL_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,  /**< Invalid parameter */
39         MINICONTROL_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,  /**< Out of memory */
40         MINICONTROL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
41         MINICONTROL_ERROR_IPC_FAILURE = TIZEN_ERROR_MINICONTROL | 0x02,  /**< IPC error */
42         MINICONTROL_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< This function is not supported */
43         MINICONTROL_ERROR_ELM_FAILURE = TIZEN_ERROR_MINICONTROL | 0x03,  /**< Some error occurred when creating a minicontrol window */
44         MINICONTROL_ERROR_UNKNOWN = TIZEN_ERROR_UNKNOWN,  /**< Unknown error */
45 } minicontrol_error_e;
46
47 /**
48  * @}
49  */
50
51 #endif /* _MINICTRL_ERROR_H_ */
52
53