GData.Commentable¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class GData.Commentable¶
- Bases:
- Structure:
All the fields in the
GData.Commentable
structure are private and should never be accessed directlyNew in version 0.10.0.
- delete_comment(service, comment_, cancellable)¶
- Parameters:
service (
GData.Service
) – aGData.Service
with which the comment will be deletedcomment (
GData.Comment
) – a comment to be deletedcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
True
if the comment was successfully deleted,False
otherwise- Return type:
Deletes comment from the
GData.Commentable
.If the given comment isn’t deletable (either because the service doesn’t support deleting comments at all, or because this particular comment is not deletable due to having insufficient permissions),
GData.ServiceError.FORBIDDEN
will be set in error andFalse
will be returned.New in version 0.10.0.
- delete_comment_async(service, comment_, cancellable, callback, *user_data)¶
- Parameters:
service (
GData.Service
) – aGData.Service
with which the comment will be deletedcomment (
GData.Comment
) – a comment to be deletedcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the operation is finisheduser_data (
object
orNone
) – data to pass to the callback function
Deletes comment from the
GData.Commentable
. self, service and comment_ are all reffed when this method is called, so can safely be freed after this method returns.For more details, see
GData.Commentable.delete_comment
(), which is the synchronous version of this method.When the operation is finished, callback will be called. You can then call
GData.Commentable.delete_comment_finish
() to get the results of the operation.New in version 0.10.0.
- delete_comment_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
True
if the comment was successfully deleted,False
otherwise- Return type:
Finishes an asynchronous comment deletion operation started with
GData.Commentable.delete_comment_async
().New in version 0.10.0.
- insert_comment(service, comment_, cancellable)¶
- Parameters:
service (
GData.Service
) – aGData.Service
with which the comment will be addedcomment (
GData.Comment
) – a new comment to be added to theGData.Commentable
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
the added
GData.Comment
, orNone
; unref withGObject.Object.unref
()- Return type:
Adds comment to the
GData.Commentable
.If the
GData.Commentable
doesn’t support commenting,None
will be returned and error will be set toGData.ServiceError.FORBIDDEN
.New in version 0.10.0.
- insert_comment_async(service, comment_, cancellable, callback, *user_data)¶
- Parameters:
service (
GData.Service
) – aGData.Service
with which the comment will be addedcomment (
GData.Comment
) – a new comment to be added to theGData.Commentable
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the operation is finisheduser_data (
object
orNone
) – data to pass to the callback function
Adds comment to the
GData.Commentable
. self, service and comment_ are all reffed when this method is called, so can safely be freed after this method returns.For more details, see
GData.Commentable.insert_comment
(), which is the synchronous version of this method.When the operation is finished, callback will be called. You can then call
GData.Commentable.insert_comment_finish
() to get the results of the operation.New in version 0.10.0.
- insert_comment_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
the added
GData.Comment
, orNone
; unref withGObject.Object.unref
()- Return type:
Finishes an asynchronous comment insertion operation started with
GData.Commentable.insert_comment_async
().New in version 0.10.0.
- query_comments(service, query, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
service (
GData.Service
) – aGData.Service
representing the service with which the object’s comments will be manipulatedquery (
GData.Query
orNone
) – aGData.Query
with query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when a comment is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feed
ofGData.Comments
, orNone
; unref withGObject.Object.unref
()- Return type:
GData.Feed
orNone
Retrieves a
GData.Feed
containing theGData.Comments
representing the comments on theGData.Commentable
which match the given query.If the
GData.Commentable
doesn’t support commenting,None
will be returned and error will be set toGData.ServiceError.FORBIDDEN
. This is in contrast to if it does support commenting but hasn’t had any comments added yet, in which case an emptyGData.Feed
will be returned and no error will be set.New in version 0.10.0.
- query_comments_async(service, query, cancellable, progress_callback, progress_user_data, callback, *user_data)¶
- Parameters:
service (
GData.Service
) – aGData.Service
representing the service with which the object’s comments will be manipulatedquery (
GData.Query
orNone
) – aGData.Query
with query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when a comment 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 theGData.Comments
representing the comments on theGData.Commentable
which match the given query. self, service and query are all reffed when this method is called, so can safely be freed after this method returns.For more details, see
GData.Commentable.query_comments
(), which is the synchronous version of this method.When the operation is finished, callback will be called. You can then call
GData.Commentable.query_comments_finish
() to get the results of the operation.New in version 0.10.0.
- query_comments_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a
GData.Feed
ofGData.Comments
, orNone
; unref withGObject.Object.unref
()- Return type:
GData.Feed
orNone
Finishes an asynchronous comment query operation started with
GData.Commentable.query_comments_async
().New in version 0.10.0.
- do_get_insert_comment_uri(comment) virtual¶
- Parameters:
comment (
GData.Comment
) –- Return type:
- do_is_comment_deletable(comment) virtual¶
- Parameters:
comment (
GData.Comment
) –- Return type: