
* include/NetworkManager.h - Add NMActiveConnectionState enum * introspection/nm-active-connection.xml introspection/nm-vpn-connection.xml - Add 'State' property for overall active connection state - Add 'Default' property, when True means this active connection has the default route - Add PropertyChanged signals so changes actually go out over the bus * src/nm-active-connection.h - Add defines for State & Default properties * src/nm-activation-request.c - Add 'state' and 'default' properties, hook up to device 'state-changed' signal to determine active connection state * src/vpn-manager/nm-vpn-connection.c src/vpn-manager/nm-vpn-connection.h src/vpn-manager/nm-vpn-manager.c src/vpn-manager/nm-vpn-service.c - Rename old 'state' to 'vpn-state' - Rename nm_vpn_connection_get_state() -> nm_vpn_connection_get_vpn_state() - Add 'state' and 'default' properties, hook up to the vpn connection's 'vpn-state-changed' signal * libnm-glib/nm-active-connection.c libnm-glib/nm-active-connection.h - Add new 'state' and 'default' properties and accessors * libnm-glib/nm-vpn-connection.c libnm-glib/nm-vpn-connection.h - Rename old 'state' property to 'vpn-state' - Add new 'state' and 'default' properties and accessors git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3582 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
53 lines
2.5 KiB
C
53 lines
2.5 KiB
C
#ifndef NM_ACTIVE_CONNECTION_H
|
|
#define NM_ACTIVE_CONNECTION_H
|
|
|
|
#include <glib/gtypes.h>
|
|
#include <glib-object.h>
|
|
#include "nm-object.h"
|
|
#include <nm-connection.h>
|
|
#include <NetworkManager.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_ACTIVE_CONNECTION (nm_active_connection_get_type ())
|
|
#define NM_ACTIVE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnection))
|
|
#define NM_ACTIVE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass))
|
|
#define NM_IS_ACTIVE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_ACTIVE_CONNECTION))
|
|
#define NM_IS_ACTIVE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_ACTIVE_CONNECTION))
|
|
#define NM_ACTIVE_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass))
|
|
|
|
#define NM_ACTIVE_CONNECTION_SERVICE_NAME "service-name"
|
|
#define NM_ACTIVE_CONNECTION_CONNECTION "connection"
|
|
#define NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT "specific-object"
|
|
#define NM_ACTIVE_CONNECTION_SHARED_SERVICE_NAME "shared-service-name"
|
|
#define NM_ACTIVE_CONNECTION_SHARED_CONNECTION "shared-connection"
|
|
#define NM_ACTIVE_CONNECTION_DEVICES "devices"
|
|
#define NM_ACTIVE_CONNECTION_STATE "state"
|
|
#define NM_ACTIVE_CONNECTION_DEFAULT "default"
|
|
|
|
typedef struct {
|
|
NMObject parent;
|
|
} NMActiveConnection;
|
|
|
|
typedef struct {
|
|
NMObjectClass parent;
|
|
} NMActiveConnectionClass;
|
|
|
|
GType nm_active_connection_get_type (void);
|
|
|
|
GObject *nm_active_connection_new (DBusGConnection *connection, const char *path);
|
|
|
|
const char * nm_active_connection_get_service_name (NMActiveConnection *connection);
|
|
NMConnectionScope nm_active_connection_get_scope (NMActiveConnection *connection);
|
|
const char * nm_active_connection_get_connection (NMActiveConnection *connection);
|
|
const char * nm_active_connection_get_specific_object (NMActiveConnection *connection);
|
|
const char * nm_active_connection_get_shared_service_name (NMActiveConnection *connection);
|
|
const char * nm_active_connection_get_shared_connection (NMActiveConnection *connection);
|
|
const GPtrArray *nm_active_connection_get_devices (NMActiveConnection *connection);
|
|
NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *connection);
|
|
gboolean nm_active_connection_get_default (NMActiveConnection *connection);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_ACTIVE_CONNECTION_H */
|