Top |
Functions
Properties
DBusGConnection * | bus | Write / Construct Only |
DBusGConnection * | dbus-connection | Write / Construct Only |
gchar * | dbus-path | Write / Construct Only |
gboolean | unsaved | Read |
Types and Values
enum | NMRemoteConnectionError |
#define | NM_REMOTE_CONNECTION_ERROR |
#define | NM_REMOTE_CONNECTION_UNSAVED |
#define | NM_REMOTE_CONNECTION_UPDATED |
#define | NM_REMOTE_CONNECTION_REMOVED |
typedef | NMRemoteConnectionCommitFunc |
typedef | NMRemoteConnectionDeleteFunc |
Functions
nm_remote_connection_error_quark ()
GQuark
nm_remote_connection_error_quark (void
);
Registers an error quark for NMRemoteConnection if necessary.
NMRemoteConnectionResultFunc ()
void (*NMRemoteConnectionResultFunc) (NMRemoteConnection *connection
,GError *error
,gpointer user_data
);
Called when NetworkManager has finished an asynchronous operation on a connection, like commit changes, deleting, saving, etc.
NMRemoteConnectionGetSecretsFunc ()
void (*NMRemoteConnectionGetSecretsFunc) (NMRemoteConnection *connection
,GHashTable *secrets
,GError *error
,gpointer user_data
);
Called when NetworkManager returns secrets in response to a request for
secrets via nm_remote_connection_get_secrets()
.
Parameters
connection |
the connection for which secrets were requested |
|
secrets |
on success, a hash table of hash tables, with each inner hash mapping a setting property to a GValue containing that property's value. |
[element-type utf8 GLib.HashTable] |
error |
on failure, a descriptive error |
|
user_data |
user data passed to |
nm_remote_connection_new ()
NMRemoteConnection * nm_remote_connection_new (DBusGConnection *bus
,const char *path
);
Creates a new object representing the remote connection.
nm_remote_connection_commit_changes ()
void nm_remote_connection_commit_changes (NMRemoteConnection *connection
,NMRemoteConnectionResultFunc callback
,gpointer user_data
);
Send any local changes to the settings and properties of this connection to NetworkManager, which will immediately save them to disk.
nm_remote_connection_commit_changes_unsaved ()
void nm_remote_connection_commit_changes_unsaved (NMRemoteConnection *connection
,NMRemoteConnectionResultFunc callback
,gpointer user_data
);
Send any local changes to the settings and properties of this connection to
NetworkManager. The changes are not saved to disk until either
nm_remote_connection_save()
or nm_remote_connection_commit_changes()
is
called.
Parameters
connection |
||
callback |
a function to be called when the commit completes. |
[scope async][allow-none] |
user_data |
caller-specific data to be passed to |
[closure] |
Since: 0.9.10
nm_remote_connection_save ()
void nm_remote_connection_save (NMRemoteConnection *connection
,NMRemoteConnectionResultFunc callback
,gpointer user_data
);
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
Parameters
connection |
||
callback |
a function to be called when the save completes. |
[scope async][allow-none] |
user_data |
caller-specific data to be passed to |
[closure] |
Since: 0.9.10
nm_remote_connection_delete ()
void nm_remote_connection_delete (NMRemoteConnection *connection
,NMRemoteConnectionResultFunc callback
,gpointer user_data
);
Delete the connection.
nm_remote_connection_get_secrets ()
void nm_remote_connection_get_secrets (NMRemoteConnection *connection
,const char *setting_name
,NMRemoteConnectionGetSecretsFunc callback
,gpointer user_data
);
Request the connection's secrets.
nm_remote_connection_get_unsaved ()
gboolean
nm_remote_connection_get_unsaved (NMRemoteConnection *connection
);
Returns
TRUE
if the remote connection contains changes that have not
been saved to disk, FALSE
if the connection is the same as its on-disk
representation.
Since: 0.9.10
Property Details
The “bus”
property
“bus” DBusGConnection *
The DBusGConnection that the NMRemoteConnection is connected to.
Owner: NMRemoteConnection
Flags: Write / Construct Only
The “dbus-connection”
property
“dbus-connection” DBusGConnection *
Owner: NMRemoteConnection
Flags: Write / Construct Only
The “dbus-path”
property
“dbus-path” gchar *
Owner: NMRemoteConnection
Flags: Write / Construct Only
Default value: NULL
Signal Details
The “removed”
signal
void user_function (NMRemoteConnection *connection, gpointer user_data)
This signal is emitted when a connection is either deleted or becomes invisible to the current user.
Flags: Run First
The “updated”
signal
void user_function (NMRemoteConnection *connection, gpointer user_data)
This signal is emitted when a connection changes, and it is still visible to the user.
Flags: Run First
The “visible”
signal
void user_function (NMRemoteConnection *nmremoteconnection, gboolean arg1, gpointer user_data)
Flags: Run First