Accounts.Service¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Accounts.Service¶
Opaque structure. Use related accessor functions.
- classmethod list_free(list)¶
- Parameters:
list ([
Accounts.Service
]) – aGLib.List
of services returned by some function of this library.
Frees the list list.
- get_description()¶
-
Gets the description of the
Accounts.Service
.New in version 1.2.
- get_display_name()¶
- Returns:
the display name of self.
- Return type:
Gets the display name of the
Accounts.Service
.
- get_file_contents(contents, data_offset)¶
- Parameters:
Gets the contents of the XML service file. The buffer returned in contents should not be modified or freed, and is guaranteed to be valid as long as self is referenced. If data_offset is not
None
, it is set to the offset where the <type_data> element can be found. If some error occurs, contents is set toNone
.
- get_i18n_domain()¶
- Returns:
the name of the translation catalog.
- Return type:
Gets the translation domain of the
Accounts.Service
.
- get_icon_name()¶
- Returns:
the name of the icon of self.
- Return type:
Gets the icon name of the
Accounts.Service
.
- get_name()¶
- Returns:
the name of self.
- Return type:
Gets the name of the
Accounts.Service
.
- get_provider()¶
- Returns:
the name of the provider of self.
- Return type:
Gets the provider name of the
Accounts.Service
.
- get_service_type()¶
- Returns:
the type of self.
- Return type:
Gets the service type of the
Accounts.Service
.
- get_tags()¶
- Returns:
GLib.List
of tags for self. The list must be freed with g_list_free(). Entries are owned by theAccounts.Service
type and must not be free’d.- Return type:
[
str
]
Get list of tags specified for the
Accounts.Service
. If the service has not defined tags, tags from the service type will be returned.
- has_tag(tag)¶
- Parameters:
tag (
str
) – tag to check for.- Returns:
True
ifAccounts.Service
has the tag,False
otherwise- Return type:
Checks if the
Accounts.Service
has the requested tag.
- ref()¶
- Returns:
self.
- Return type:
Adds a reference to self.
- unref()¶
Used to unreference the
Accounts.Service
structure.