Initial update for shortcut
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Shortcut / Tizen.Applications.ShortcutEvent / ShortcutEventEnumerations.cs
1 /*
2  * Copyright (c) 2017 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 namespace Tizen.Applications.Shortcut
18 {
19     /// <summary>
20     /// Enumeration for values of shortcut response types.
21     /// </summary>
22     public enum ShortcutError
23     {
24         /// <summary>
25         /// Successful.
26         /// </summary>
27         None = Tizen.Internals.Errors.ErrorCode.None,
28
29         /// <summary>
30         /// Invalid function parameter.
31         /// </summary>
32         InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,
33
34         /// <summary>
35         /// Out of memory.
36         /// </summary>
37         OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory,
38
39         /// <summary>
40         /// Permission denied.
41         /// </summary>
42         PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied,
43
44         /// <summary>
45         /// I/O Error.
46         /// </summary>
47         IoError = Tizen.Internals.Errors.ErrorCode.IoError,
48
49         /// <summary>
50         /// Not supported.
51         /// </summary>
52         NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported,
53
54         /// <summary>
55         /// Device or resource busy.
56         /// </summary>
57         ResourceBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy,
58
59         /// <summary>
60         /// There is no space to add a new shortcut.
61         /// </summary>
62         NoSpace = -0x01160000 | 0x01,
63
64         /// <summary>
65         /// Shortcut is already added.
66         /// </summary>
67         Exist = -0x01160000 | 0x02,
68
69         /// <summary>
70         /// Unrecoverable error.
71         /// </summary>
72         Fault = -0x01160000 | 0x04,
73
74         /// <summary>
75         /// Not exist shortcut.
76         /// </summary>
77         NotExist = -0x01160000 | 0x08,
78
79         /// <summary>
80         /// Connection not established or communication problem.
81         /// </summary>
82         COMM = -0x01160000 | 0x40
83     }
84 }