EDataServer.GDataQuery

Fields

None

Methods

class

new ()

get_completed_max ()

get_completed_min ()

get_due_max ()

get_due_min ()

get_max_results ()

get_show_completed ()

get_show_deleted ()

get_show_hidden ()

get_updated_min ()

ref ()

set_completed_max (value)

set_completed_min (value)

set_due_max (value)

set_due_min (value)

set_max_results (value)

set_show_completed (value)

set_show_deleted (value)

set_show_hidden (value)

set_updated_min (value)

to_string ()

unref ()

Details

class EDataServer.GDataQuery

New in version 3.46.

classmethod new()
Returns:

a new EDataServer.GDataQuery

Return type:

EDataServer.GDataQuery

Creates a new EDataServer.GDataQuery. Free it with EDataServer.GDataQuery.unref(), when no longer needed.

New in version 3.46.

get_completed_max()
Returns:

the set value, or -1

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the completed max property, as a Unix date/time. When not set, returns -1. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_completed_min()
Returns:

the set value, or -1

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the completed min property, as a Unix date/time. When not set, returns -1. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_due_max()
Returns:

the set value, or -1

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the due max property, as a Unix date/time. When not set, returns -1. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_due_min()
Returns:

the set value, or -1

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the due min property, as a Unix date/time. When not set, returns -1. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_max_results()
Returns:

the set value, or 0

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the max results property. When not set, returns 0. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_show_completed()
Returns:

the set value, or False

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(bool, out_exists: bool)

Gets current value of the show completed property. When not set, returns False. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_show_deleted()
Returns:

the set value, or False

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(bool, out_exists: bool)

Gets current value of the show deleted property. When not set, returns False. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_show_hidden()
Returns:

the set value, or False

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(bool, out_exists: bool)

Gets current value of the show hidden property. When not set, returns False. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

get_updated_min()
Returns:

the set value, or -1

out_exists:

an out argument, where can be set whether the property exists, or None

Return type:

(int, out_exists: bool)

Gets current value of the updated min property, as a Unix date/time. When not set, returns -1. The optional out_exists can be used to see whether the property is set.

New in version 3.46.

ref()
Returns:

the self

Return type:

EDataServer.GDataQuery

Increases the reference count of the self. The added reference shuld be removed with EDataServer.GDataQuery.unref().

New in version 3.46.

set_completed_max(value)
Parameters:

value (int) – a value to set, as a Unix date/time

Sets upper bound for a task’s completion date, as a Unix date/time, to filter by. The default is not to filter by completion date.

This can be used for Task object query only.

New in version 3.46.

set_completed_min(value)
Parameters:

value (int) – a value to set, as a Unix date/time

Sets lower bound for a task’s completion date, as a Unix date/time, to filter by. The default is not to filter by completion date.

This can be used for Task object query only.

New in version 3.46.

set_due_max(value)
Parameters:

value (int) – a value to set, as a Unix date/time

Sets upper bound for a task’s due date, as a Unix date/time, to filter by. The default is not to filter by due date.

This can be used for Task object query only.

New in version 3.46.

set_due_min(value)
Parameters:

value (int) – a value to set, as a Unix date/time

Sets lower bound for a task’s due date, as a Unix date/time, to filter by. The default is not to filter by due date.

This can be used for Task object query only.

New in version 3.46.

set_max_results(value)
Parameters:

value (int) – a value to set

Sets max results to be returned in one call.

This can be used for any object query.

New in version 3.46.

set_show_completed(value)
Parameters:

value (bool) – a value to set

Sets a flag indicating whether completed tasks are returned in the result. The default is True. Note that show hidden should also be True to show tasks completed in first party clients, such as the web UI and Google’s mobile apps.

This can be used for Task object query only.

New in version 3.46.

set_show_deleted(value)
Parameters:

value (bool) – a value to set

Sets a flag indicating whether deleted tasks are returned in the result. The default is False.

This can be used for Task object query only.

New in version 3.46.

set_show_hidden(value)
Parameters:

value (bool) – a value to set

Sets a flag indicating whether hidden tasks are returned in the result. The default is False.

This can be used for Task object query only.

New in version 3.46.

set_updated_min(value)
Parameters:

value (int) – a value to set, as a Unix date/time

Sets lower bound for a task’s last modification time, as a Unix date/time, to filter by. The default is not to filter by the last modification time.

This can be used for Task object query only.

New in version 3.46.

to_string()
Returns:

the self converted into a string, or None, when the self doesn’t have set any parameter.

Return type:

str or None

Converts the self into a string, which can be used as a URI query. The returned string should be freed with GLib.free(), when no longer needed.

New in version 3.46.

unref()

Decreases the reference count of the self. When the reference count reaches 0, the self is freed.

New in version 3.46.