Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Tapi / Tizen.Tapi / PhonebookEnumerations.cs
1 /*
2  * Copyright (c) 2016 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.Tapi
18 {
19     /// <summary>
20     /// Enumeration for the storage types to be selected in the SIM or USIM.
21     /// </summary>
22     public enum PhonebookType
23     {
24         /// <summary>
25         /// Fixed Dialing Number.
26         /// </summary>
27         Fdn,
28         /// <summary>
29         /// Sim - ADN.
30         /// </summary>
31         Adn,
32         /// <summary>
33         /// Service Dialing Number.
34         /// </summary>
35         Sdn,
36         /// <summary>
37         /// USIM - 3G phone book.
38         /// </summary>
39         Usim,
40         /// <summary>
41         /// Additional number Alpha String.
42         /// </summary>
43         Aas,
44         /// <summary>
45         /// Grouping identifier Alpha String.
46         /// </summary>
47         Gas,
48         /// <summary>
49         /// Unknown file type.
50         /// </summary>
51         Unknown = 0xFF
52     }
53
54     /// <summary>
55     /// Enumeration for the phonebook operation types.
56     /// </summary>
57     public enum PhonebookOperationType
58     {
59         /// <summary>
60         /// Contact added or updated.
61         /// </summary>
62         Update,
63         /// <summary>
64         /// Existing contact deleted.
65         /// </summary>
66         Delete,
67         /// <summary>
68         /// Max value.
69         /// </summary>
70         Max
71     }
72
73     /// <summary>
74     /// Enumeration for the storage field types in the 3G Phone book.
75     /// </summary>
76     public enum PhonebookFileType3G
77     {
78         /// <summary>
79         /// Name.
80         /// </summary>
81         Name = 0x01,
82         /// <summary>
83         /// Number.
84         /// </summary>
85         Number,
86         /// <summary>
87         /// First Another number.
88         /// </summary>
89         Anr1,
90         /// <summary>
91         /// Second Another number.
92         /// </summary>
93         Anr2,
94         /// <summary>
95         /// Third Another number.
96         /// </summary>
97         Anr3,
98         /// <summary>
99         /// First Email.
100         /// </summary>
101         Email1,
102         /// <summary>
103         /// Second Email.
104         /// </summary>
105         Email2,
106         /// <summary>
107         /// Third Email.
108         /// </summary>
109         Email3,
110         /// <summary>
111         /// Fourth Email.
112         /// </summary>
113         Email4,
114         /// <summary>
115         /// Second name entry of the main name.
116         /// </summary>
117         Sne,
118         /// <summary>
119         /// Group.
120         /// </summary>
121         Group,
122         /// <summary>
123         /// 1 byte control info and 1 byte hidden info.
124         /// </summary>
125         Pbc
126     }
127
128     /// <summary>
129     /// Enumeration for the text encryption type.
130     /// </summary>
131     public enum TextEncryptionType
132     {
133         /// <summary>
134         /// ASCII Encoding.
135         /// </summary>
136         Ascii,
137         /// <summary>
138         /// GSM 7 Bit Encoding.
139         /// </summary>
140         Gsm7Bit,
141         /// <summary>
142         /// UCS2 Encoding.
143         /// </summary>
144         Ucs2,
145         /// <summary>
146         /// HEX Encoding.
147         /// </summary>
148         Hex
149     }
150
151     /// <summary>
152     /// Enumeration for the phonebook access result.
153     /// </summary>
154     public enum PhonebookAccessResult
155     {
156         /// <summary>
157         /// SIM phonebook operation successful.
158         /// </summary>
159         Success,
160         /// <summary>
161         /// SIM phonebook operation failure.
162         /// </summary>
163         Fail,
164         /// <summary>
165         /// The index passed is not a valid index.
166         /// </summary>
167         InvalidIndex,
168         /// <summary>
169         /// The number length exceeds the max length allowed (or 0).
170         /// </summary>
171         InvalidNumberLength,
172         /// <summary>
173         /// The name length exceeds the max length allowed (or 0).
174         /// </summary>
175         InvalidNameLength,
176         /// <summary>
177         /// Access condition for PB file is not satisfied.
178         /// </summary>
179         AccessConditionNotSatisfied
180     }
181 }