EDataServer.SourceCollection¶
- Subclasses:
None
Methods¶
- Inherited:
EDataServer.SourceBackend (3), EDataServer.SourceExtension (4), GObject.Object (37)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
Set to |
||
r/w/c/en |
Whether calendar resources are enabled |
||
r/w/c/en |
Calendar top URL |
||
r/w/c/en |
Whether contact resources are enabled |
||
r/w/c/en |
Contacts top URL |
||
r/w/c/en |
Uniquely identifies the account at the service provider |
||
r/w/c/en |
Whether mail resources are enabled |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceCollection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.6.
- dup_calendar_url()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceCollection
:calendar-url
- Return type:
Thread-safe variation of
EDataServer.SourceCollection.get_calendar_url
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.26.
- dup_contacts_url()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceCollection
:contacts-url
- Return type:
Thread-safe variation of
EDataServer.SourceCollection.get_contacts_url
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.26.
- dup_identity()¶
- Returns:
a newly-allocated copy of
EDataServer.SourceCollection
:identity
- Return type:
Thread-safe variation of
EDataServer.SourceCollection.get_identity
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.6.
- get_allow_sources_rename()¶
- Returns:
whether the collection backend allows a user to rename child sources
- Return type:
Returns whether the collection backend allows a user to rename child sources. It is meant mainly for GUI. The default is
False
.New in version 3.36.
- get_calendar_enabled()¶
- Returns:
whether calendar sources should be enabled
- Return type:
Returns whether calendar sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any calendar sources it maintains with the
EDataServer.SourceCollection
:calendar-enabled
property.New in version 3.6.
- get_calendar_url()¶
-
Returns the calendar top URL string, that is, where to search for calendar sources.
New in version 3.26.
- get_contacts_enabled()¶
- Returns:
whether address book sources should be enabled
- Return type:
Returns whether address book sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any address book sources it maintains with the
EDataServer.SourceCollection
:contacts-enabled
property.New in version 3.6.
- get_contacts_url()¶
-
Returns the contacts top URL string, that is, where to search for contact sources.
New in version 3.26.
- get_identity()¶
-
Returns the string used to uniquely identify the user account at the service provider. Often this is an email address or user name.
New in version 3.6.
- get_mail_enabled()¶
- Returns:
whether mail sources should be enabled
- Return type:
Returns whether mail sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any mail sources it maintains with the
EDataServer.SourceCollection
:mail-enabled
property.New in version 3.6.
- set_allow_sources_rename(allow_sources_rename)¶
- Parameters:
allow_sources_rename (
bool
) – whether mail sources should be enabled
Sets whether the collection backend allows a user to rename child sources. It is meant mainly for GUI. The default is
False
.New in version 3.36.
- set_calendar_enabled(calendar_enabled)¶
- Parameters:
calendar_enabled (
bool
) – whether calendar sources should be enabled
Sets whether calendar sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any calendar sources it maintains with the
EDataServer.SourceCollection
:calendar-enabled
property.Calling this function from a registry service client has no effect until the change is submitted to the registry service through
EDataServer.Source.write
(), but there should rarely be any need for clients to call this.New in version 3.6.
- set_calendar_url(calendar_url)¶
-
Sets the calendar top URL, that is, where to search for calendar sources.
The internal copy of calendar_url is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.26.
- set_contacts_enabled(contacts_enabled)¶
- Parameters:
contacts_enabled (
bool
) – whether address book sources should be enabled
Sets whether address book sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any address book sources it maintains with the
EDataServer.SourceCollection
:contacts-enabled
property.Calling this function from a registry service client has no effect until the change is submitted to the registry service through
EDataServer.Source.write
(), but there should rarely be any need for clients to call this.New in version 3.6.
- set_contacts_url(contacts_url)¶
-
Sets the contacts top URL, that is, where to search for contact sources.
The internal copy of contacts_url is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.26.
- set_identity(identity)¶
-
Sets the string used to uniquely identify the user account at the service provider. Often this is an email address or user name.
The internal copy of identity is automatically stripped of leading and trailing whitespace. If the resulting string is empty,
None
is set instead.New in version 3.6.
- set_mail_enabled(mail_enabled)¶
- Parameters:
mail_enabled (
bool
) – whether mail sources should be enabled
Sets whether mail sources within the collection should be enabled.
An #ECollectionBackend running within the registry D-Bus service will automatically synchronize any mail sources it maintains with the
EDataServer.SourceCollection
:mail-enabled
property.Calling this function from a registry service client has no effect until the changes is submitted to the registry service through
EDataServer.Source.write
(), but there should rarely be any need for clients to call this.New in version 3.6.
Property Details¶
- EDataServer.SourceCollection.props.allow_sources_rename¶
- Name:
allow-sources-rename
- Type:
- Default Value:
- Flags:
Set to
True
when the collection source allows user rename the child sources
- EDataServer.SourceCollection.props.calendar_enabled¶
- Name:
calendar-enabled
- Type:
- Default Value:
- Flags:
Whether calendar resources are enabled
- EDataServer.SourceCollection.props.calendar_url¶
- Name:
calendar-url
- Type:
- Default Value:
- Flags:
Calendar top URL
- EDataServer.SourceCollection.props.contacts_enabled¶
- Name:
contacts-enabled
- Type:
- Default Value:
- Flags:
Whether contact resources are enabled
- EDataServer.SourceCollection.props.contacts_url¶
- Name:
contacts-url
- Type:
- Default Value:
- Flags:
Contacts top URL
- EDataServer.SourceCollection.props.identity¶
-
Uniquely identifies the account at the service provider