Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Telephony / Interop / Interop.Network.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 using System;
18 using System.Runtime.InteropServices;
19
20 /// <summary>
21 /// Partial Interop Class
22 /// </summary>
23 internal static partial class Interop
24 {
25     /// <summary>
26     /// Network Interop Class
27     /// </summary>
28     internal static partial class Network
29     {
30         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_lac")]
31         internal static extern Telephony.TelephonyError GetLac(IntPtr handle, out int lac);
32
33         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_cell_id")]
34         internal static extern Telephony.TelephonyError GetCellId(IntPtr handle, out int cellId);
35
36         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_rssi")]
37         internal static extern Telephony.TelephonyError GetRssi(IntPtr handle, out Tizen.Telephony.Network.Rssi rssi);
38
39         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_roaming_status")]
40         internal static extern Telephony.TelephonyError GetRoamingStatus(IntPtr handle, out bool status);
41
42         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_mcc")]
43         internal static extern Telephony.TelephonyError GetMcc(IntPtr handle, out string mcc);
44
45         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_mnc")]
46         internal static extern Telephony.TelephonyError GetMnc(IntPtr handle, out string mnc);
47
48         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_network_name")]
49         internal static extern Telephony.TelephonyError GetNetworkName(IntPtr handle, out string networkName);
50
51         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_type")]
52         internal static extern Telephony.TelephonyError GetType(IntPtr handle, out Tizen.Telephony.Network.Type networkType);
53
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);
56
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);
59
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);
62
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);
65
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);
68
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);
71
72         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_tac")]
73         internal static extern Telephony.TelephonyError GetTac(IntPtr handle, out int tac);
74
75         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_system_id")]
76         internal static extern Telephony.TelephonyError GetSystemId(IntPtr handle, out int sid);
77
78         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_network_id")]
79         internal static extern Telephony.TelephonyError GetNetworkId(IntPtr handle, out int nid);
80
81         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_id")]
82         internal static extern Telephony.TelephonyError GetBaseStationId(IntPtr handle, out int bsId);
83
84         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_latitude")]
85         internal static extern Telephony.TelephonyError GetBaseStationLatitude(IntPtr handle, out int bsLatitude);
86
87         [DllImport(Libraries.Telephony, EntryPoint = "telephony_network_get_base_station_longitude")]
88         internal static extern Telephony.TelephonyError GetBaseStationLongitude(IntPtr handle, out int bsLongitude);
89     }
90 }