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.AccessHandler
structure 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.Service
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when a rule is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feed
of access control rules, orNone
; unref withGObject.Object.unref
()- Return type:
Retrieves a
GData.Feed
containing all the access rules which apply to the givenGData.AccessHandler
. Only the owner of aGData.AccessHandler
may 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.CANCELLED
will be returned.A
GData.ServiceError.PROTOCOL_ERROR
will 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.ParserError
will 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.Service
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when a rule is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the query is finisheduser_data (
object
orNone
) – data to pass to the callback function
Retrieves a
GData.Feed
containing all the access rules which apply to the givenGData.AccessHandler
. Only the owner of aGData.AccessHandler
may 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.Service
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when a rule is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Returns:
a
GData.Feed
of access control rules, orNone
; unref withGObject.Object.unref
()- Return type:
Retrieves a
GData.Feed
containing all the access rules which apply to the givenGData.AccessHandler
. Only the owner of aGData.AccessHandler
may 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.CANCELLED
will be returned.A
GData.ServiceError.PROTOCOL_ERROR
will 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.ParserError
will be returned.New in version 0.3.0.