2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.Runtime.InteropServices;
21 /// The Partial Interop class.
23 internal static partial class Interop
26 /// The Network Interop class.
28 internal static partial class Network
30 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_lac")]
31 internal static extern Telephony.TelephonyError GetLac(IntPtr handle, out int lac);
33 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_cell_id")]
34 internal static extern Telephony.TelephonyError GetCellId(IntPtr handle, out int cellId);
36 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_rssi")]
37 internal static extern Telephony.TelephonyError GetRssi(IntPtr handle, out Tizen.Telephony.Network.Rssi rssi);
39 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_roaming_status")]
40 internal static extern Telephony.TelephonyError GetRoamingStatus(IntPtr handle, out bool status);
42 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_mcc")]
43 internal static extern Telephony.TelephonyError GetMcc(IntPtr handle, out string mcc);
45 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_mnc")]
46 internal static extern Telephony.TelephonyError GetMnc(IntPtr handle, out string mnc);
48 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_network_name")]
49 internal static extern Telephony.TelephonyError GetNetworkName(IntPtr handle, out string networkName);
51 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_type")]
52 internal static extern Telephony.TelephonyError GetType(IntPtr handle, out Tizen.Telephony.Network.Type networkType);
54 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_ps_type")]
55 internal static extern Telephony.TelephonyError GetPsType(IntPtr handle, out Tizen.Telephony.Network.PsType psType);
57 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_network_name_option")]
58 internal static extern Telephony.TelephonyError GetNetworkNameOption(IntPtr handle, out Tizen.Telephony.Network.NameOption networkNameOption);
60 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_service_state")]
61 internal static extern Telephony.TelephonyError GetServiceState(IntPtr handle, out Tizen.Telephony.Network.ServiceState networkServiceState);
63 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_default_data_subscription")]
64 internal static extern Telephony.TelephonyError GetDefaultDataSubscription(IntPtr handle, out Tizen.Telephony.Network.DefaultDataSubscription defaultSub);
66 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_default_subscription")]
67 internal static extern Telephony.TelephonyError GetDefaultSubscription(IntPtr handle, out Tizen.Telephony.Network.DefaultSubscription defaultSub);
69 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_selection_mode")]
70 internal static extern Telephony.TelephonyError GetSelectionMode(IntPtr handle, out Tizen.Telephony.Network.SelectionMode mode);
72 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_tac")]
73 internal static extern Telephony.TelephonyError GetTac(IntPtr handle, out int tac);
75 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_system_id")]
76 internal static extern Telephony.TelephonyError GetSystemId(IntPtr handle, out int sid);
78 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_network_id")]
79 internal static extern Telephony.TelephonyError GetNetworkId(IntPtr handle, out int nid);
81 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_id")]
82 internal static extern Telephony.TelephonyError GetBaseStationId(IntPtr handle, out int bsId);
84 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_latitude")]
85 internal static extern Telephony.TelephonyError GetBaseStationLatitude(IntPtr handle, out int bsLatitude);
87 [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_longitude")]
88 internal static extern Telephony.TelephonyError GetBaseStationLongitude(IntPtr handle, out int bsLongitude);