Base Code
[platform/core/csapi/tizenfx.git] / src / Tizen.Telephony / Interop / Interop.Sim.cs
1 // Copyright 2016 by Samsung Electronics, Inc.
2 //
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
8
9 using System;
10 using System.Runtime.InteropServices;
11
12 /// <summary>
13 /// Partial Interop Class
14 /// </summary>
15 internal static partial class Interop
16 {
17     /// <summary>
18     /// Sim Interop Class
19     /// </summary>
20     internal static partial class Sim
21   {
22     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_icc_id")]
23     internal static extern Telephony.TelephonyError GetIccId(IntPtr handle, out string iccId);
24
25     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_operator")]
26     internal static extern Telephony.TelephonyError GetOperator(IntPtr handle, out string simOperator);
27
28     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_msin")]
29     internal static extern Telephony.TelephonyError GetMsin(IntPtr handle, out string msin);
30
31     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_spn")]
32     internal static extern Telephony.TelephonyError GetSpn(IntPtr handle, out string spn);
33
34     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_is_changed")]
35     internal static extern Telephony.TelephonyError IsChanged(IntPtr handle, out int isChanged);
36
37     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_state")]
38     internal static extern Telephony.TelephonyError GetState(IntPtr handle, out Tizen.Telephony.Sim.State simState);
39
40     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_application_list")]
41     internal static extern Telephony.TelephonyError GetApplicationList(IntPtr handle, out uint appList);
42
43     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_subscriber_number")]
44     internal static extern Telephony.TelephonyError GetSubscriberNumber(IntPtr handle, out string subscriberNumber);
45
46     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_subscriber_id")]
47     internal static extern Telephony.TelephonyError GetSubscriberId(IntPtr handle, out string subscriberId);
48
49     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_lock_state")]
50     internal static extern Telephony.TelephonyError GetLockState(IntPtr handle, out Tizen.Telephony.Sim.LockState lockState);
51
52     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_group_id1")]
53     internal static extern Telephony.TelephonyError GetGroupId1(IntPtr handle, out string gid1);
54
55     [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_call_forwarding_indicator_state")]
56     internal static extern Telephony.TelephonyError GetCallForwardingIndicatorState(IntPtr handle, out bool state);
57   }
58 }