Top | ![]() |
![]() |
![]() |
![]() |
void | (*OobsObjectAsyncFunc) () |
OobsResult | oobs_object_commit () |
OobsResult | oobs_object_commit_async () |
OobsResult | oobs_object_add () |
OobsResult | oobs_object_add_async () |
OobsResult | oobs_object_delete () |
OobsResult | oobs_object_delete_async () |
OobsResult | oobs_object_update () |
OobsResult | oobs_object_update_async () |
void | oobs_object_process_requests () |
gboolean | oobs_object_has_updated () |
void | oobs_object_ensure_update () |
gboolean | oobs_object_authenticate () |
GObject ╰── OobsObject ├── OobsGroup ├── OobsGroupsConfig ├── OobsHostsConfig ├── OobsIfacesConfig ├── OobsNFSConfig ├── OobsNTPConfig ├── OobsSelfConfig ├── OobsService ├── OobsServicesConfig ├── OobsSMBConfig ├── OobsTimeConfig ├── OobsUser ╰── OobsUsersConfig
void (*OobsObjectAsyncFunc) (OobsObject *object
,OobsResult result
,gpointer data
);
OobsResult
oobs_object_commit (OobsObject *object
);
Commits to the system all the changes done to the configuration held by an OobsObject.
OobsResult oobs_object_commit_async (OobsObject *object
,OobsObjectAsyncFunc func
,gpointer data
);
Commits to the system all the changes done to the configuration held by an OobsObject.
This change will be asynchronous, being run the function func
when the change has been done.
object |
An OobsObject. |
|
func |
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
data |
Additional data to pass to |
OobsResult
oobs_object_add (OobsObject *object
);
Add an OobsObject to the system's configuration. This is only supported by certain individual objects, others are added by committing a modified objects list.
OobsResult oobs_object_add_async (OobsObject *object
,OobsObjectAsyncFunc func
,gpointer data
);
Add an OobsObject to the system's configuration.
This change will be asynchronous, being run the function func
when the change has been done.
object |
An OobsObject. |
|
func |
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
data |
Additional data to pass to |
OobsResult
oobs_object_delete (OobsObject *object
);
Delete an OobsObject from the system's configuration. This is only supported by certain individual objects, others are added by committing a modified objects list.
OobsResult oobs_object_delete_async (OobsObject *object
,OobsObjectAsyncFunc func
,gpointer data
);
Delete an OobsObject from the system's configuration.
This change will be asynchronous, being run the function func
when the change has been done.
object |
An OobsObject. |
|
func |
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
data |
Additional data to pass to |
OobsResult
oobs_object_update (OobsObject *object
);
Synchronizes the configuration held by the OobsObject with the actual system configuration. All the changes done to the configuration held by the OobsObject will be forgotten.
OobsResult oobs_object_update_async (OobsObject *object
,OobsObjectAsyncFunc func
,gpointer data
);
Synchronizes the configuration held by the OobsObject
with the actual system configuration. All the changes done
to the configuration held by the OobsObject will be forgotten.
The update operation will be asynchronous, being run the
function func
when the update has been done.
object |
An OobsObject |
|
func |
An OobsObjectAsyncFunc that will be called when the asynchronous operation has ended. |
|
data |
Aditional data to pass to |
void
oobs_object_process_requests (OobsObject *object
);
Blocks until all pending asynchronous requests to this object have been processed.
gboolean
oobs_object_has_updated (OobsObject *object
);
Returns whether the object has been updated since its creation.
see oobs_object_update()
and oobs_object_update_async()
.
void
oobs_object_ensure_update (OobsObject *object
);
Ensures that the given object has been updated. If not it either blocks until any update request sent is dispatched or updates synchronously.
gboolean oobs_object_authenticate (OobsObject *object
,GError **error
);
Performs a PolicyKit authentication via the backends for the action required by the given object. User interaction will occur synchronously if needed.
You may want to check the returned error for OOBS_ERROR_AUTHENTICATION_CANCELLED
,
in which case you should avoid showing an error dialog to the user.
“remote-object”
property“remote-object” gchar *
Name of the remote object at the other side of the connection.
Owner: OobsObject
Flags: Write / Construct Only
Default value: NULL
“changed”
signalvoid user_function (OobsObject *oobsobject, gpointer user_data)
Flags: Run Last
“committed”
signalvoid user_function (OobsObject *oobsobject, gpointer user_data)
Flags: Run Last
“updated”
signalvoid user_function (OobsObject *oobsobject, gpointer user_data)
Flags: Run Last