1 // Copyright 2016 by Samsung Electronics, Inc.
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.
10 using System.Runtime.InteropServices;
13 /// Partial Interop Class
15 internal static partial class Interop
20 internal static partial class Sim
22 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_icc_id")]
23 internal static extern Telephony.TelephonyError GetIccId(IntPtr handle, out string iccId);
25 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_operator")]
26 internal static extern Telephony.TelephonyError GetOperator(IntPtr handle, out string simOperator);
28 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_msin")]
29 internal static extern Telephony.TelephonyError GetMsin(IntPtr handle, out string msin);
31 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_spn")]
32 internal static extern Telephony.TelephonyError GetSpn(IntPtr handle, out string spn);
34 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_is_changed")]
35 internal static extern Telephony.TelephonyError IsChanged(IntPtr handle, out int isChanged);
37 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_state")]
38 internal static extern Telephony.TelephonyError GetState(IntPtr handle, out Tizen.Telephony.Sim.State simState);
40 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_application_list")]
41 internal static extern Telephony.TelephonyError GetApplicationList(IntPtr handle, out uint appList);
43 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_subscriber_number")]
44 internal static extern Telephony.TelephonyError GetSubscriberNumber(IntPtr handle, out string subscriberNumber);
46 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_subscriber_id")]
47 internal static extern Telephony.TelephonyError GetSubscriberId(IntPtr handle, out string subscriberId);
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);
52 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_group_id1")]
53 internal static extern Telephony.TelephonyError GetGroupId1(IntPtr handle, out string gid1);
55 [DllImport(Libraries.Telephony, EntryPoint = "telephony_sim_get_call_forwarding_indicator_state")]
56 internal static extern Telephony.TelephonyError GetCallForwardingIndicatorState(IntPtr handle, out bool state);