EDataServer.GDataSession¶
- Subclasses:
None
Methods¶
- Inherited:
EDataServer.SoupSession (27), Soup.Session (43), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.GDataSession(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.46.
- classmethod new(source)¶
- Parameters:
source (
EDataServer.Source
) – anEDataServer.Source
- Returns:
a new
EDataServer.GDataSession
; free it withGObject.Object.unref
(), when no longer needed.- Return type:
Creates a new
EDataServer.GDataSession
associated with the given source.New in version 3.46.
- tasklists_delete_sync(tasklist_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Deletes a task list tasklist_id.
New in version 3.46.
- tasklists_get_sync(tasklist_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_tasklist:
tasklist object
- Return type:
(
bool
, out_tasklist:Json.Object
)
Gets a task list tasklist_id and returns it as a
Json.Object
, which should be freed withJson.Object.unref
(), when no longer needed.There can be used
EDataServer.gdata_tasklist_get_id
(),EDataServer.gdata_tasklist_get_etag
(),EDataServer.gdata_tasklist_get_title
(),EDataServer.gdata_tasklist_get_self_link
(),EDataServer.gdata_tasklist_get_updated
() to read the properties of the task list.New in version 3.46.
- tasklists_insert_sync(title, cancellable)¶
- Parameters:
title (
str
) – title to setcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_inserted_tasklist:
the created task list
- Return type:
(
bool
, out_inserted_tasklist:Json.Object
)
Creates a new task list, titled title. The out_inserted_tasklist should be freed with
Json.Object.unref
(), when no longer needed.New in version 3.46.
- tasklists_list_sync(query, cb, user_data, cancellable)¶
- Parameters:
query (
EDataServer.GDataQuery
orNone
) – anEDataServer.GDataQuery
to limit returned task lists, orNone
cb (
EDataServer.GDataObjectCallback
orNone
) – anEDataServer.GDataObjectCallback
to call for each found task listcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Lists all configured task lists for the user, calling the cb for each of them.
New in version 3.46.
- tasklists_patch_sync(tasklist_id, tasklist_properties, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtasklist_properties (
Json.Builder
) – task list properties to changecancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_patched_tasklist:
where to store patched task list, or
None
- Return type:
(
bool
, out_patched_tasklist:Json.Object
)
Changes properties of a task list tasklist_id.
If not
None
, free the out_patched_tasklist withJson.Object.unref
(), when no longer needed.New in version 3.46.
- tasklists_update_sync(tasklist_id, tasklist, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtasklist (
Json.Builder
) – task list object to update the task list withcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_updated_tasklist:
where to store updated task list, or
None
- Return type:
(
bool
, out_updated_tasklist:Json.Object
)
Updates a task list tasklist_id with values from the tasklist.
New in version 3.46.
- tasks_clear_sync(tasklist_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Clears all completed tasks from the task list tasklist_id. The affected tasks will be marked as ‘hidden’ and no longer be returned by default when retrieving all tasks for a task list.
New in version 3.46.
- tasks_delete_sync(tasklist_id, task_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask_id (
str
) – id of a taskcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Deletes a task task_id from a task list tasklist_id.
New in version 3.46.
- tasks_get_sync(tasklist_id, task_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask_id (
str
) – id of a taskcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_task:
task object
- Return type:
(
bool
, out_task:Json.Object
)
Gets a task task_id from a task list tasklist_id and returns it as a
Json.Object
, which should be freed withJson.Object.unref
(), when no longer needed.There can be used
EDataServer.gdata_task_get_id
(),EDataServer.gdata_task_get_etag
(),EDataServer.gdata_task_get_title
() and other e_gdata_task_… functions to read the properties of the task.New in version 3.46.
- tasks_insert_sync(tasklist_id, task, parent_task_id, previous_task_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask (
Json.Builder
) – aJson.Builder
with the task objectparent_task_id (
str
orNone
) – parent task identifier, orNone
to create at the top-levelprevious_task_id (
str
orNone
) – previous sibling task identifier, orNone
to create at the first position among its siblingscancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_inserted_task:
the created task
- Return type:
(
bool
, out_inserted_task:Json.Object
)
Creates a new task task in the task list tasklist_id. The out_inserted_task should be freed with
Json.Object.unref
(), when no longer needed.New in version 3.46.
- tasks_list_sync(tasklist_id, query, cb, user_data, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listquery (
EDataServer.GDataQuery
orNone
) – anEDataServer.GDataQuery
to limit returned tasks, orNone
cb (
EDataServer.GDataObjectCallback
orNone
) – anEDataServer.GDataObjectCallback
to call for each found taskcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Lists all tasks in the task list tasklist_id, calling the cb for each of them.
New in version 3.46.
- tasks_move_sync(tasklist_id, task_id, parent_task_id, previous_task_id, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask_id (
str
) – id of a taskparent_task_id (
str
orNone
) – parent task identifier, orNone
to move at the top-levelprevious_task_id (
str
orNone
) – previous sibling task identifier, orNone
to move at the first position among its siblingscancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Moves the specified task task_id to another position in the task list tasklist_id. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
New in version 3.46.
- tasks_patch_sync(tasklist_id, task_id, task_properties, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask_id (
str
) – id of a tasktask_properties (
Json.Builder
) – task properties to changecancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_patched_task:
where to set patches task, or
None
- Return type:
(
bool
, out_patched_task:Json.Object
)
Changes properties task_properties of a task task_id in the task list tasklist_id.
If not
None
, free the out_patched_task withJson.Object.unref
(), when no longer needed.New in version 3.46.
- tasks_update_sync(tasklist_id, task_id, task, cancellable)¶
- Parameters:
tasklist_id (
str
) – id of a task listtask_id (
str
) – id of a tasktask (
Json.Builder
) – task object to update the task withcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- out_updated_task:
where to store updated task, or
None
- Return type:
(
bool
, out_updated_task:Json.Object
)
Updates a task task_id in a task list tasklist_id to the values from the task.
New in version 3.46.