1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2007 - 2011 Red Hat, Inc.
4 * Copyright (C) 2007 - 2008 Novell, Inc.
5 */
6
7#ifndef __NM_SETTING_GSM_H__
8#define __NM_SETTING_GSM_H__
9
10#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
11#error "Only <NetworkManager.h> can be included directly."
12#endif
13
14#include "nm-setting.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_SETTING_GSM (nm_setting_gsm_get_type())
19#define NM_SETTING_GSM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_GSM, NMSettingGsm))
20#define NM_SETTING_GSM_CLASS(klass) \
21 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_GSM, NMSettingGsmClass))
22#define NM_IS_SETTING_GSM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_GSM))
23#define NM_IS_SETTING_GSM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_GSM))
24#define NM_SETTING_GSM_GET_CLASS(obj) \
25 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_GSM, NMSettingGsmClass))
26
27#define NM_SETTING_GSM_SETTING_NAME "gsm"
28
29#define NM_SETTING_GSM_AUTO_CONFIG "auto-config"
30#define NM_SETTING_GSM_USERNAME "username"
31#define NM_SETTING_GSM_PASSWORD "password"
32#define NM_SETTING_GSM_PASSWORD_FLAGS "password-flags"
33#define NM_SETTING_GSM_APN "apn"
34#define NM_SETTING_GSM_NETWORK_ID "network-id"
35#define NM_SETTING_GSM_PIN "pin"
36#define NM_SETTING_GSM_PIN_FLAGS "pin-flags"
37#define NM_SETTING_GSM_HOME_ONLY "home-only"
38#define NM_SETTING_GSM_DEVICE_ID "device-id"
39#define NM_SETTING_GSM_SIM_ID "sim-id"
40#define NM_SETTING_GSM_SIM_OPERATOR_ID "sim-operator-id"
41#define NM_SETTING_GSM_MTU "mtu"
42
43/* Deprecated */
44#define NM_SETTING_GSM_NUMBER "number"
45
46typedef struct _NMSettingGsmClass NMSettingGsmClass;
47
48GType nm_setting_gsm_get_type(void);
49
50NMSetting *nm_setting_gsm_new(void);
51
52NM_AVAILABLE_IN_1_22
53gboolean nm_setting_gsm_get_auto_config(NMSettingGsm *setting);
54
55const char *nm_setting_gsm_get_username(NMSettingGsm *setting);
56const char *nm_setting_gsm_get_password(NMSettingGsm *setting);
57const char *nm_setting_gsm_get_apn(NMSettingGsm *setting);
58const char *nm_setting_gsm_get_network_id(NMSettingGsm *setting);
59const char *nm_setting_gsm_get_pin(NMSettingGsm *setting);
60gboolean nm_setting_gsm_get_home_only(NMSettingGsm *setting);
61
62NM_AVAILABLE_IN_1_2
63const char *nm_setting_gsm_get_device_id(NMSettingGsm *setting);
64NM_AVAILABLE_IN_1_2
65const char *nm_setting_gsm_get_sim_id(NMSettingGsm *setting);
66NM_AVAILABLE_IN_1_2
67const char *nm_setting_gsm_get_sim_operator_id(NMSettingGsm *setting);
68NM_AVAILABLE_IN_1_8
69guint32 nm_setting_gsm_get_mtu(NMSettingGsm *setting);
70
71NM_DEPRECATED_IN_1_16
72const char *nm_setting_gsm_get_number(NMSettingGsm *setting);
73
74NMSettingSecretFlags nm_setting_gsm_get_pin_flags(NMSettingGsm *setting);
75NMSettingSecretFlags nm_setting_gsm_get_password_flags(NMSettingGsm *setting);
76
77G_END_DECLS
78
79#endif /* __NM_SETTING_GSM_H__ */
80

source code of include/libnm/nm-setting-gsm.h