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_CDMA_H
24 #define NM_SETTING_CDMA_H
26 #include <nm-setting.h>
30 #define NM_TYPE_SETTING_CDMA (nm_setting_cdma_get_type ())
31 #define NM_SETTING_CDMA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_CDMA, NMSettingCdma))
32 #define NM_SETTING_CDMA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_CDMA, NMSettingCdmaClass))
33 #define NM_IS_SETTING_CDMA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_CDMA))
34 #define NM_IS_SETTING_CDMA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_CDMA))
35 #define NM_SETTING_CDMA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_CDMA, NMSettingCdmaClass))
37 #define NM_SETTING_CDMA_SETTING_NAME "cdma"
41 * @NM_SETTING_CDMA_ERROR_UNKNOWN: unknown or unclassified error
42 * @NM_SETTING_CDMA_ERROR_INVALID_PROPERTY: the property was invalid
43 * @NM_SETTING_CDMA_ERROR_MISSING_PROPERTY: the property was missing and is
45 * @NM_SETTING_CDMA_ERROR_MISSING_SERIAL_SETTING: the required #NMSettingSerial
46 * is missing in the connection
49 NM_SETTING_CDMA_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/
50 NM_SETTING_CDMA_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/
51 NM_SETTING_CDMA_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/
52 NM_SETTING_CDMA_ERROR_MISSING_SERIAL_SETTING /*< nick=MissingSerialSetting >*/
55 #define NM_SETTING_CDMA_ERROR nm_setting_cdma_error_quark ()
56 GQuark nm_setting_cdma_error_quark (void);
58 #define NM_SETTING_CDMA_NUMBER "number"
59 #define NM_SETTING_CDMA_USERNAME "username"
60 #define NM_SETTING_CDMA_PASSWORD "password"
61 #define NM_SETTING_CDMA_PASSWORD_FLAGS "password-flags"
68 NMSettingClass parent;
70 /* Padding for future expansion */
71 void (*_reserved1) (void);
72 void (*_reserved2) (void);
73 void (*_reserved3) (void);
74 void (*_reserved4) (void);
77 GType nm_setting_cdma_get_type (void);
79 NMSetting *nm_setting_cdma_new (void);
80 const char *nm_setting_cdma_get_number (NMSettingCdma *setting);
81 const char *nm_setting_cdma_get_username (NMSettingCdma *setting);
82 const char *nm_setting_cdma_get_password (NMSettingCdma *setting);
83 NMSettingSecretFlags nm_setting_cdma_get_password_flags (NMSettingCdma *setting);
87 #endif /* NM_SETTING_CDMA_H */