Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Tapi / Tizen.Tapi / SmsEnumerations.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 type of sms network.
21     /// </summary>
22     public enum SmsNetType
23     {
24         /// <summary>
25         /// Network type is 3gpp.
26         /// </summary>
27         Net3GPP = 0x01,
28         /// <summary>
29         /// Network type is 3gpp2 (CDMA).
30         /// </summary>
31         Net3GPP2 = 0x02
32     }
33
34     /// <summary>
35     /// Enumeration for different CB message types.
36     /// </summary>
37     public enum SmsCbMsgType
38     {
39         /// <summary>
40         /// GSM Cell broadcast message.
41         /// </summary>
42         Gsm = 1,
43         /// <summary>
44         /// UMTSCell broadcast message.
45         /// </summary>
46         Umts,
47         /// <summary>
48         /// CDMA broadcast message.
49         /// </summary>
50         Cdma
51     }
52
53     /// <summary>
54     /// Enumeration for different ETWS message types.
55     /// </summary>
56     public enum SmsEtwsMsgType
57     {
58         /// <summary>
59         /// Primary ETWS message.
60         /// </summary>
61         Primary = 0,
62         /// <summary>
63         /// GSM Secondary ETWS message.
64         /// </summary>
65         SecondaryGsm,
66         /// <summary>
67         /// UMTS Secondary ETWS message.
68         /// </summary>
69         SecondaryUmts,
70         /// <summary>
71         /// CDMA Seconday ETWS message.
72         /// </summary>
73         SecondaryCdma
74     }
75
76     /// <summary>
77     /// Enumeration for memory status type.
78     /// </summary>
79     public enum SmsMemoryStatus
80     {
81         /// <summary>
82         /// PDA memory is available.
83         /// </summary>
84         PdaAvailable = 0x01,
85         /// <summary>
86         /// PDA memory is full.
87         /// </summary>
88         PdaFull = 0x02,
89         /// <summary>
90         /// Phone memory is available.
91         /// </summary>
92         PhoneAvailable = 0x03,
93         /// <summary>
94         /// Phone memory is full.
95         /// </summary>
96         PhoneFull = 0x04
97     }
98
99     /// <summary>
100     /// Enumeration for the sms ready status type.
101     /// </summary>
102     public enum SmsReadyStatus
103     {
104         /// <summary>
105         /// Non Ready Status.
106         /// </summary>
107         StatusNone = 0x00,
108         /// <summary>
109         /// SMS 3GPP Ready.
110         /// </summary>
111         Status3GPP = 0x01,
112         /// <summary>
113         /// SMS 3GPP2 Ready.
114         /// </summary>
115         Status3GPP2 = 0x02,
116         /// <summary>
117         /// SMS 3GPP and 3GPP2 Ready.
118         /// </summary>
119         Status3GPPAnd3GPP2 = 0x03
120     }
121
122     /// <summary>
123     /// Enumeration for sms status type.
124     /// </summary>
125     public enum SmsMessageStatus
126     {
127         /// <summary>
128         /// MT message, stored and read.
129         /// </summary>
130         Read,
131         /// <summary>
132         /// MT message, stored and unread.
133         /// </summary>
134         Unread,
135         /// <summary>
136         /// MO message, stored and sent.
137         /// </summary>
138         Sent,
139         /// <summary>
140         /// MO message, stored but not sent.
141         /// </summary>
142         Unsent,
143         /// <summary>
144         /// Delivered at destination.
145         /// </summary>
146         Delivered,
147         /// <summary>
148         /// Service centre forwarded message but is unable to confirm delivery.
149         /// </summary>
150         DeliveryUnconfirmed,
151         /// <summary>
152         /// Message has been replaced.
153         /// </summary>
154         MessageReplaced,
155         /// <summary>
156         /// Reserved for future use.
157         /// </summary>
158         Reserved
159     }
160
161     /// <summary>
162     /// Enumeration for different response types that come in the sent status acknowledgement/notification after sending a message to the network.
163     /// </summary>
164     public enum SmsResponse
165     {
166         /// <summary>
167         /// Message sent successfully.
168         /// </summary>
169         Success,
170         /// <summary>
171         /// Message routing not available.
172         /// </summary>
173         NotAvailable,
174         /// <summary>
175         /// Invalid parameter present in TPDU
176         /// </summary>
177         InvalidParameter,
178         /// <summary>
179         /// Device failure.
180         /// </summary>
181         DeviceFail,
182         /// <summary>
183         /// Reserved Service.
184         /// </summary>
185         ServiceReserved,
186         /// <summary>
187         /// Invalid location.
188         /// </summary>
189         InvalidLocation,
190         /// <summary>
191         /// No SIM error.
192         /// </summary>
193         NoSim,
194         /// <summary>
195         /// SIM not ready error.
196         /// </summary>
197         SimNotReady,
198         /// <summary>
199         /// No response from network.
200         /// </summary>
201         NoNetworkResponse,
202         /// <summary>
203         /// Destination address restricted.
204         /// </summary>
205         DestinationAddressRestricted,
206         /// <summary>
207         /// Service center address restricted.
208         /// </summary>
209         SCAAddressRestricted,
210         /// <summary>
211         /// Resend an already done operation.
212         /// </summary>
213         ResendDone,
214         /// <summary>
215         /// SCA address not available.
216         /// </summary>
217         SCANotAvailable,
218         /// <summary>
219         /// Unassigned number.
220         /// </summary>
221         UnassignedNumber,
222         /// <summary>
223         /// Operator determined barring.
224         /// </summary>
225         OperatorBarring,
226         /// <summary>
227         /// Call barred.
228         /// </summary>
229         CallBarred,
230         /// <summary>
231         /// Message transfer rejected.
232         /// </summary>
233         MessageTransferRejected,
234         /// <summary>
235         /// Message capacity exceeded/memory full.
236         /// </summary>
237         MemoryCapacityExceeded,
238         /// <summary>
239         /// Destination number out of service.
240         /// </summary>
241         DestinationOutOfService,
242         /// <summary>
243         /// Unspecified subscriber.
244         /// </summary>
245         UnspecifiedSubscriber,
246         /// <summary>
247         /// Facility rejected.
248         /// </summary>
249         FacilityRejected,
250         /// <summary>
251         /// Unknown subscriber.
252         /// </summary>
253         UnknownSubscriber,
254         /// <summary>
255         /// Network out of order.
256         /// </summary>
257         NetworkOutOfOrder,
258         /// <summary>
259         /// Temporary failure.
260         /// </summary>
261         TemporaryFail,
262         /// <summary>
263         /// Congestion occured.
264         /// </summary>
265         Congestion,
266         /// <summary>
267         /// Resource unavilable.
268         /// </summary>
269         ResourceUnavailable,
270         /// <summary>
271         /// Facility not subscribed by the user.
272         /// </summary>
273         FacilityNotSubscribed,
274         /// <summary>
275         /// Facility not implemented.
276         /// </summary>
277         FacilityNotImplemented,
278         /// <summary>
279         /// Invalid reference value.
280         /// </summary>
281         InvalidReference,
282         /// <summary>
283         /// Invalid message.
284         /// </summary>
285         InvalidMessage,
286         /// <summary>
287         /// Invalid mandatory information.
288         /// </summary>
289         InvalidMandatoryInfo,
290         /// <summary>
291         /// Message type not implemented.
292         /// </summary>
293         MessageTypeNotImplemented,
294         /// <summary>
295         /// Message not compact protocol.
296         /// </summary>
297         MessageNotCompactProtocol,
298         /// <summary>
299         /// Information element not implemented.
300         /// </summary>
301         IENotImplemented,
302         /// <summary>
303         /// Protocol error.
304         /// </summary>
305         ProtocolError,
306         /// <summary>
307         /// Networking error.
308         /// </summary>
309         Interworking,
310         /// <summary>
311         /// Sms ME full.
312         /// </summary>
313         MeFull,
314         /// <summary>
315         /// Sms sim full.
316         /// </summary>
317         SimFull,
318         /// <summary>
319         /// Timeout error.
320         /// </summary>
321         Timeout
322     }
323 }