1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301 USA.
18 * Copyright 2011 - 2012 Red Hat, Inc.
19 * Copyright 2008 Novell, Inc.
22 #ifndef NM_DEVICE_MODEM_H
23 #define NM_DEVICE_MODEM_H
25 #include "nm-device.h"
29 #define NM_TYPE_DEVICE_MODEM (nm_device_modem_get_type ())
30 #define NM_DEVICE_MODEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_MODEM, NMDeviceModem))
31 #define NM_DEVICE_MODEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DEVICE_MODEM, NMDeviceModemClass))
32 #define NM_IS_DEVICE_MODEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DEVICE_MODEM))
33 #define NM_IS_DEVICE_MODEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DEVICE_MODEM))
34 #define NM_DEVICE_MODEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_MODEM, NMDeviceModemClass))
38 * @NM_DEVICE_MODEM_ERROR_UNKNOWN: unknown or unclassified error
39 * @NM_DEVICE_MODEM_ERROR_NOT_MODEM_CONNECTION: the connection was not of modem type
40 * @NM_DEVICE_MODEM_ERROR_INVALID_MODEM_CONNECTION: the modem connection was invalid
41 * @NM_DEVICE_MODEM_ERROR_MISSING_DEVICE_CAPS: the device missed required capabilities
44 NM_DEVICE_MODEM_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/
45 NM_DEVICE_MODEM_ERROR_NOT_MODEM_CONNECTION, /*< nick=NotModemConnection >*/
46 NM_DEVICE_MODEM_ERROR_INVALID_MODEM_CONNECTION, /*< nick=InvalidModemConnection >*/
47 NM_DEVICE_MODEM_ERROR_MISSING_DEVICE_CAPS, /*< nick=MissingDeviceCaps >*/
50 #define NM_DEVICE_MODEM_ERROR nm_device_modem_error_quark ()
51 GQuark nm_device_modem_error_quark (void);
53 #define NM_DEVICE_MODEM_MODEM_CAPABILITIES "modem-capabilities"
54 #define NM_DEVICE_MODEM_CURRENT_CAPABILITIES "current-capabilities"
63 /* Padding for future expansion */
64 void (*_reserved1) (void);
65 void (*_reserved2) (void);
66 void (*_reserved3) (void);
67 void (*_reserved4) (void);
68 void (*_reserved5) (void);
69 void (*_reserved6) (void);
72 GType nm_device_modem_get_type (void);
74 NMDeviceModemCapabilities nm_device_modem_get_modem_capabilities (NMDeviceModem *self);
75 NMDeviceModemCapabilities nm_device_modem_get_current_capabilities (NMDeviceModem *self);
79 #endif /* NM_DEVICE_MODEM_H */