GData.TasksTask¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Completion date of the task. |
||
r/w |
Due date of the task. |
||
r/w |
Indicated whatever task is deleted. |
||
r |
Indicated whatever task is hidden. |
||
r/w |
Notes describing the task. |
||
r/w |
Identifier of parent task. |
||
r/w |
Position of the task among sibling tasks using lexicographical order. |
||
r/w |
Status of the task. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.TasksTask(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.TasksTask
structure are private and should never be accessed directly.New in version 0.15.0.
- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.TasksTask
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.TasksTask
with the given ID and default properties.New in version 0.15.0.
- get_completed()¶
- Returns:
the completed property, or -1
- Return type:
Gets the
GData.TasksTask
:completed
property. If the property is unset, -1 will be returned.New in version 0.15.0.
- get_due()¶
- Returns:
the due property, or -1
- Return type:
Gets the
GData.TasksTask
:due
property. If the property is unset, -1 will be returned.New in version 0.15.0.
- get_notes()¶
-
Gets the
GData.TasksTask
:notes
property.New in version 0.15.0.
- get_parent()¶
-
Gets the
GData.TasksTask
:parent
property.New in version 0.15.0.
- get_position()¶
-
Gets the
GData.TasksTask
:position
property.New in version 0.15.0.
- get_status()¶
-
Gets the
GData.TasksTask
:status
property.New in version 0.15.0.
- is_deleted()¶
-
Gets the
GData.TasksTask
:is-deleted
property.New in version 0.15.0.
-
Gets the
GData.TasksTask
:is-hidden
property.New in version 0.15.0.
- set_completed(completed)¶
- Parameters:
completed (
int
) – completion time of the task, or -1
Sets the
GData.TasksTask
:completed
property of theGData.TasksTask
to the new completion time of the task, completed.Set completed to -1 to unset the property in the completion time of the task
New in version 0.15.0.
- set_due(due)¶
- Parameters:
due (
int
) – due time of the task, or -1
Sets the
GData.TasksTask
:due
property of theGData.TasksTask
to the new due time of the task, due.Set due to -1 to unset the property in the due time of the task
New in version 0.15.0.
- set_is_deleted(deleted)¶
-
Sets the
GData.TasksTask
:is-deleted
property to deleted.New in version 0.15.0.
- set_notes(notes)¶
-
Sets the
GData.TasksTask
:notes
property to the new notes, notes.Set notes to
None
to unset the property in the task.New in version 0.15.0.
- set_parent(parent)¶
-
Sets the
GData.TasksTask
:parent
property.New in version 0.17.10.
- set_position(position)¶
- Parameters:
position (
str
) – position of the task in the list
Sets the
GData.TasksTask
:position
property.New in version 0.17.10.
Property Details¶
- GData.TasksTask.props.completed¶
-
Completion date of the task (as a RFC 3339 timestamp; seconds since the UNIX epoch).
This field is -1 if the task has not been completed.
New in version 0.15.0.
- GData.TasksTask.props.due¶
-
Due date of the task (as a RFC 3339 timestamp; seconds since the UNIX epoch).
This field is -1 if the task has no due date assigned.
New in version 0.15.0.
- GData.TasksTask.props.is_deleted¶
-
Flag indicating whether the task has been deleted. The default is
False
.New in version 0.15.0.
-
Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is
False
. This field is read-only.New in version 0.15.0.
- GData.TasksTask.props.notes¶
-
This is where the description of what needs to be done in the task is stored.
New in version 0.15.0.
- GData.TasksTask.props.parent¶
-
Parent task identifier. This field is omitted if it is a top-level task.
Since 0.17.10, this property is writable.
New in version 0.15.0.
- GData.TasksTask.props.position¶
-
String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task’s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level).
Since 0.17.10, this property is writable.
New in version 0.15.0.
- GData.TasksTask.props.status¶
-
Status of the task. This is either
GData.TASKS_STATUS_NEEDS_ACTION
orGData.TASKS_STATUS_COMPLETED
.New in version 0.15.0.