Top | ![]() |
![]() |
![]() |
![]() |
GQuark | nm_remote_settings_error_quark () |
void | (*NMRemoteSettingsAddConnectionFunc) () |
void | (*NMRemoteSettingsSaveHostnameFunc) () |
NMRemoteSettings * | nm_remote_settings_new () |
void | nm_remote_settings_new_async () |
NMRemoteSettings * | nm_remote_settings_new_finish () |
GSList * | nm_remote_settings_list_connections () |
NMRemoteConnection * | nm_remote_settings_get_connection_by_path () |
NMRemoteConnection * | nm_remote_settings_get_connection_by_uuid () |
gboolean | nm_remote_settings_add_connection () |
gboolean | nm_remote_settings_save_hostname () |
DBusGConnection * | bus | Read / Write / Construct Only |
gboolean | can-modify | Read |
gchar * | hostname | Read |
gboolean | service-running | Read |
enum | NMRemoteSettingsError |
#define | NM_REMOTE_SETTINGS_ERROR |
#define | NM_REMOTE_SETTINGS_BUS |
#define | NM_REMOTE_SETTINGS_SERVICE_RUNNING |
#define | NM_REMOTE_SETTINGS_HOSTNAME |
#define | NM_REMOTE_SETTINGS_CAN_MODIFY |
#define | NM_REMOTE_SETTINGS_NEW_CONNECTION |
#define | NM_REMOTE_SETTINGS_CONNECTIONS_READ |
struct | NMRemoteSettings |
struct | NMRemoteSettingsClass |
GQuark
nm_remote_settings_error_quark (void
);
Registers an error quark for NMRemoteSettings if necessary.
void (*NMRemoteSettingsAddConnectionFunc) (NMRemoteSettings *settings
,NMRemoteConnection *connection
,GError *error
,gpointer user_data
);
void (*NMRemoteSettingsSaveHostnameFunc) (NMRemoteSettings *settings
,GError *error
,gpointer user_data
);
NMRemoteSettings *
nm_remote_settings_new (DBusGConnection *bus
);
Creates a new object representing the remote settings service.
Note that this will do blocking D-Bus calls to initialize the
settings object. You can use nm_remote_settings_new_async()
if you
want to avoid that.
void nm_remote_settings_new_async (DBusGConnection *bus
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Creates a new object representing the remote settings service and
begins asynchronously initializing it. callback
will be called
when it is done; use nm_remote_settings_new_finish()
to get the
result.
NMRemoteSettings * nm_remote_settings_new_finish (GAsyncResult *result
,GError **error
);
Gets the result of an nm_remote_settings_new_async()
call.
GSList *
nm_remote_settings_list_connections (NMRemoteSettings *settings
);
a
list containing all connections provided by the remote settings service.
Each element of the returned list is a NMRemoteConnection
instance, which is
owned by the NMRemoteSettings
object and should not be freed by the caller.
The returned list is, however, owned by the caller and should be freed
using g_slist_free()
when no longer required.
[transfer container][element-type NMClient.RemoteConnection]
NMRemoteConnection * nm_remote_settings_get_connection_by_path (NMRemoteSettings *settings
,const char *path
);
Returns the NMRemoteConnection
representing the connection at path
.
NMRemoteConnection * nm_remote_settings_get_connection_by_uuid (NMRemoteSettings *settings
,const char *uuid
);
Returns the NMRemoteConnection
identified by uuid
.
gboolean nm_remote_settings_add_connection (NMRemoteSettings *settings
,NMConnection *connection
,NMRemoteSettingsAddConnectionFunc callback
,gpointer user_data
);
Requests that the remote settings service add the given settings to a new connection.
settings |
the |
|
connection |
the connection to add. Note that this object's settings will be added, not the object itself |
|
callback |
callback to be called when the add operation completes. |
[scope async] |
user_data |
caller-specific data passed to |
[closure] |
gboolean nm_remote_settings_save_hostname (NMRemoteSettings *settings
,const char *hostname
,NMRemoteSettingsSaveHostnameFunc callback
,gpointer user_data
);
Requests that the machine's persistent hostname be set to the specified value or cleared.
settings |
the |
|
hostname |
the new persistent hostname to set, or |
|
callback |
callback to be called when the hostname operation completes. |
[scope async][allow-none] |
user_data |
caller-specific data passed to |
[closure] |
Describes errors that may result from operations involving a NMRemoteSettings.
unknown or unclassified error |
||
the NMRemoteConnection object was removed before it was completely initialized |
||
the NMRemoteConnection object is not visible or otherwise unreadable |
struct NMRemoteSettingsClass { GObjectClass parent; /* Signals */ void (*new_connection) (NMRemoteSettings *settings, NMRemoteConnection *connection); void (*connections_read) (NMRemoteSettings *settings); /* Padding for future expansion */ void (*_reserved1) (void); void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); void (*_reserved5) (void); void (*_reserved6) (void); };
“can-modify”
property “can-modify” gboolean
Can modify anything (hostname, connections, etc).
Flags: Read
Default value: FALSE
“connections-read”
signalvoid user_function (NMRemoteSettings *nmremotesettings, gpointer user_data)
nmremotesettings |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“new-connection”
signalvoid user_function (NMRemoteSettings *nmremotesettings, GObject *arg1, gpointer user_data)
nmremotesettings |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First