EDataServer.SourceSelectable

g EDataServer.SourceBackend EDataServer.SourceBackend EDataServer.SourceSelectable EDataServer.SourceSelectable EDataServer.SourceBackend->EDataServer.SourceSelectable EDataServer.SourceExtension EDataServer.SourceExtension EDataServer.SourceExtension->EDataServer.SourceBackend GObject.Object GObject.Object GObject.Object->EDataServer.SourceExtension

Subclasses:

EDataServer.SourceCalendar, EDataServer.SourceMemoList, EDataServer.SourceTaskList

Methods

Inherited:

EDataServer.SourceBackend (3), EDataServer.SourceExtension (4), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_color ()

dup_groups ()

get_color ()

get_groups ()

get_order ()

get_selected ()

set_color (color)

set_groups (groups)

set_order (order)

set_selected (selected)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

EDataServer.SourceBackend (1), EDataServer.SourceExtension (1)

Name

Type

Flags

Short Description

color

str

r/w/c/en

groups

str

r/w/c/en

order

int

r/w/c/en

selected

bool

r/w/c/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

EDataServer.SourceBackend

r

Class Details

class EDataServer.SourceSelectable(**kwargs)
Bases:

EDataServer.SourceBackend

Abstract:

Yes

Structure:

EDataServer.SourceSelectableClass

Added in version 3.6.

dup_color()
Returns:

a newly-allocated copy of EDataServer.SourceSelectable :color, or None, when none is set

Return type:

str or None

Thread-safe variation of EDataServer.SourceSelectable.get_color(). Use this function when accessing self from multiple threads.

The returned string should be freed with GLib.free() when no longer needed.

Added in version 3.6.

dup_groups()
Returns:

a newly-allocated copy of EDataServer.SourceSelectable :groups, or None, when none is set

Return type:

str or None

Thread-safe variation of EDataServer.SourceSelectable.get_groups(). Use this function when accessing self from multiple threads.

The returned string should be freed with GLib.free() when no longer needed.

Added in version 3.62.

get_color()
Returns:

the color specification for the EDataServer.Source, or None, when none is set

Return type:

str or None

Returns the color specification for the EDataServer.Source to which self belongs. A colored block is often displayed next to the data source’s display name in user interfaces.

Added in version 3.6.

get_groups()
Returns:

the group specification for the EDataServer.Source, or None, when none is set

Return type:

str or None

Returns the group specification for the EDataServer.Source to which self belongs. This is a comma-separated list of group names.

Added in version 3.62.

get_order()
Returns:

the preferred sorting order for the EDataServer.Source

Return type:

int

Returns the preferred sorting order for the EDataServer.Source to which self belongs. Default is 0.

Added in version 3.40.

get_selected()
Returns:

the selected state for the EDataServer.Source

Return type:

bool

Returns the selected state of the EDataServer.Source to which self belongs. The selected state is often represented as a checkbox next to the data source’s display name in user interfaces.

Added in version 3.6.

set_color(color)
Parameters:

color (str or None) – a color specification, or None

Sets the color specification for the EDataServer.Source to which self belongs. A colored block is often displayed next to the data source’s display name in user interfaces.

The internal copy of color is automatically stripped of leading and trailing whitespace. If the resulting string is empty, None is set instead.

Added in version 3.6.

set_groups(groups)
Parameters:

groups (str or None) – a comma-separated list of group names, or None

Sets the groups specification for the EDataServer.Source to which self belongs.

The internal copy of groups is automatically stripped of leading and trailing whitespace. If the resulting string is empty, None is set instead.

Added in version 3.62.

set_order(order)
Parameters:

order (int) – the sorting order

Sets the sorting order for the EDataServer.Source to which self belongs.

Added in version 3.40.

set_selected(selected)
Parameters:

selected (bool) – selected state

Sets the selected state for the EDataServer.Source to which self belongs. The selected state is often represented as a checkbox next to the data source’s display name in user interfaces.

Added in version 3.6.

Property Details

EDataServer.SourceSelectable.props.color
Name:

color

Type:

str

Default Value:

'#62a0ea'

Flags:

READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Textual specification of a color

EDataServer.SourceSelectable.props.groups
Name:

groups

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Comma-separated list of group names to which the source belongs

Added in version 3.62.

EDataServer.SourceSelectable.props.order
Name:

order

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Preferred sorting order

EDataServer.SourceSelectable.props.selected
Name:

selected

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Whether the data source is selected