GData.AccessHandler¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class GData.AccessHandler¶
- Bases:
- Structure:
All the fields in the
GData.AccessHandlerstructure are private and should never be accessed directly.New in version 0.3.0.
- get_rules(service, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
service (
GData.Service) – aGData.Servicecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when a rule is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feedof access control rules, orNone; unref withGObject.Object.unref()- Return type:
Retrieves a
GData.Feedcontaining all the access rules which apply to the givenGData.AccessHandler. Only the owner of aGData.AccessHandlermay view its rule feed.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned.A
GData.ServiceError.PROTOCOL_ERRORwill be returned if the server indicates there is a problem with the query.For each rule in the response feed, progress_callback will be called in the main thread. If there was an error parsing the XML response, a
GData.ParserErrorwill be returned.New in version 0.3.0.
- get_rules_async(service, cancellable, progress_callback, progress_user_data, callback, *user_data)¶
- Parameters:
service (
GData.Service) – aGData.Servicecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when a rule is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the query is finisheduser_data (
objectorNone) – data to pass to the callback function
Retrieves a
GData.Feedcontaining all the access rules which apply to the givenGData.AccessHandler. Only the owner of aGData.AccessHandlermay view its rule feed. self and service are both reffed when this function is called, so can safely be unreffed after this function returns.For more details, see
GData.AccessHandler.get_rules(), which is the synchronous version of this function, andGData.Service.query_async(), which is the base asynchronous query function.When the operation is finished, callback will be called. You can then call
GData.Service.query_finish() to get the results of the operation.New in version 0.9.1.
- do_get_rules(service, cancellable, progress_callback, progress_user_data) virtual¶
- Parameters:
service (
GData.Service) – aGData.Servicecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when a rule is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback function
- Returns:
a
GData.Feedof access control rules, orNone; unref withGObject.Object.unref()- Return type:
Retrieves a
GData.Feedcontaining all the access rules which apply to the givenGData.AccessHandler. Only the owner of aGData.AccessHandlermay view its rule feed.If cancellable is not
None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the errorGio.IOErrorEnum.CANCELLEDwill be returned.A
GData.ServiceError.PROTOCOL_ERRORwill be returned if the server indicates there is a problem with the query.For each rule in the response feed, progress_callback will be called in the main thread. If there was an error parsing the XML response, a
GData.ParserErrorwill be returned.New in version 0.3.0.