summaryrefslogtreecommitdiff
path: root/include/widget_errno.h
blob: c4958d24cebd32555b7817b280e717af7a6281b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Copyright 2013  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://floralicense.org/license/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __WIDGET_ERRNO_H
#define __WIDGET_ERRNO_H

#include <tizen_error.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @file widget_errno.h
 * @brief This file declares API of libwidget-service library
 */

/**
 * @addtogroup CAPI_WIDGET_SERVICE_MODULE
 * @{
 */


#ifndef TIZEN_ERROR_WIDGET
#define TIZEN_ERROR_WIDGET -0x02F40000
#endif


/**
 * @brief Enumeration for the result status of widget operation.
 * @since_tizen 2.3.1
 */
typedef enum widget_error {
	WIDGET_ERROR_NONE = TIZEN_ERROR_NONE, /**< Operation is successfully completed */
	WIDGET_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid function parameter */
	WIDGET_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
	WIDGET_ERROR_RESOURCE_BUSY = TIZEN_ERROR_RESOURCE_BUSY, /**< Device or resource busy */
	WIDGET_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
	WIDGET_ERROR_CANCELED = TIZEN_ERROR_CANCELED, /**< Operation Canceled */
	WIDGET_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
	WIDGET_ERROR_TIMED_OUT = TIZEN_ERROR_TIMED_OUT, /**< Time out */
	WIDGET_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
	WIDGET_ERROR_FILE_NO_SPACE_ON_DEVICE = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
	WIDGET_ERROR_FAULT = TIZEN_ERROR_WIDGET | 0x0001, /**< Fault - Unable to recover from the error */
	WIDGET_ERROR_ALREADY_EXIST = TIZEN_ERROR_WIDGET | 0x0002, /**< Already exists */
	WIDGET_ERROR_ALREADY_STARTED = TIZEN_ERROR_WIDGET | 0x0004, /**< Operation is already started */
	WIDGET_ERROR_NOT_EXIST = TIZEN_ERROR_WIDGET | 0x0008, /**< Not exists */
	WIDGET_ERROR_DISABLED = TIZEN_ERROR_WIDGET | 0x0010,  /**< Disabled */
	WIDGET_ERROR_MAX_EXCEEDED = TIZEN_ERROR_WIDGET | 0x0011,  /**< Maximum number of instances exceeded (Since 3.0) */
} widget_error_e;

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif
/* End of a file */