1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA.
19 * Copyright 2007 - 2011 Red Hat, Inc.
20 * Copyright 2007 - 2008 Novell, Inc.
23 #ifndef __NM_SETTING_GSM_H__
24 #define __NM_SETTING_GSM_H__
26 #if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
27 #error "Only <NetworkManager.h> can be included directly."
30 #include <nm-setting.h>
34 #define NM_TYPE_SETTING_GSM (nm_setting_gsm_get_type ())
35 #define NM_SETTING_GSM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_GSM, NMSettingGsm))
36 #define NM_SETTING_GSM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_GSM, NMSettingGsmClass))
37 #define NM_IS_SETTING_GSM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_GSM))
38 #define NM_IS_SETTING_GSM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_GSM))
39 #define NM_SETTING_GSM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_GSM, NMSettingGsmClass))
41 #define NM_SETTING_GSM_SETTING_NAME "gsm"
43 #define NM_SETTING_GSM_NUMBER "number"
44 #define NM_SETTING_GSM_USERNAME "username"
45 #define NM_SETTING_GSM_PASSWORD "password"
46 #define NM_SETTING_GSM_PASSWORD_FLAGS "password-flags"
47 #define NM_SETTING_GSM_APN "apn"
48 #define NM_SETTING_GSM_NETWORK_ID "network-id"
49 #define NM_SETTING_GSM_PIN "pin"
50 #define NM_SETTING_GSM_PIN_FLAGS "pin-flags"
51 #define NM_SETTING_GSM_HOME_ONLY "home-only"
52 #define NM_SETTING_GSM_DEVICE_ID "device-id"
53 #define NM_SETTING_GSM_SIM_ID "sim-id"
54 #define NM_SETTING_GSM_SIM_OPERATOR_ID "sim-operator-id"
56 struct _NMSettingGsm {
61 NMSettingClass parent;
67 GType nm_setting_gsm_get_type (void);
69 NMSetting *nm_setting_gsm_new (void);
70 const char *nm_setting_gsm_get_number (NMSettingGsm *setting);
71 const char *nm_setting_gsm_get_username (NMSettingGsm *setting);
72 const char *nm_setting_gsm_get_password (NMSettingGsm *setting);
73 const char *nm_setting_gsm_get_apn (NMSettingGsm *setting);
74 const char *nm_setting_gsm_get_network_id (NMSettingGsm *setting);
75 const char *nm_setting_gsm_get_pin (NMSettingGsm *setting);
76 gboolean nm_setting_gsm_get_home_only (NMSettingGsm *setting);
79 const char *nm_setting_gsm_get_device_id (NMSettingGsm *setting);
81 const char *nm_setting_gsm_get_sim_id (NMSettingGsm *setting);
83 const char *nm_setting_gsm_get_sim_operator_id (NMSettingGsm *setting);
85 NMSettingSecretFlags nm_setting_gsm_get_pin_flags (NMSettingGsm *setting);
86 NMSettingSecretFlags nm_setting_gsm_get_password_flags (NMSettingGsm *setting);
90 #endif /* __NM_SETTING_GSM_H__ */