Accounts.Service

Fields

None

Methods

class

list_free (list)

get_description ()

get_display_name ()

get_file_contents (contents, data_offset)

get_i18n_domain ()

get_icon_name ()

get_name ()

get_provider ()

get_service_type ()

get_tags ()

has_tag (tag)

ref ()

unref ()

Details

class Accounts.Service

Opaque structure. Use related accessor functions.

classmethod list_free(list)
Parameters:

list ([Accounts.Service]) – a GLib.List of services returned by some function of this library.

Frees the list list.

get_description()
Returns:

the description of self, or None upon failure.

Return type:

str

Gets the description of the Accounts.Service.

New in version 1.2.

get_display_name()
Returns:

the display name of self.

Return type:

str

Gets the display name of the Accounts.Service.

get_file_contents(contents, data_offset)
Parameters:
  • contents (str) – location to receive the pointer to the file contents.

  • data_offset (int) – pointer to receive the offset of the type data.

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 to None.

get_i18n_domain()
Returns:

the name of the translation catalog.

Return type:

str

Gets the translation domain of the Accounts.Service.

get_icon_name()
Returns:

the name of the icon of self.

Return type:

str

Gets the icon name of the Accounts.Service.

get_name()
Returns:

the name of self.

Return type:

str

Gets the name of the Accounts.Service.

get_provider()
Returns:

the name of the provider of self.

Return type:

str

Gets the provider name of the Accounts.Service.

get_service_type()
Returns:

the type of self.

Return type:

str

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 the Accounts.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 if Accounts.Service has the tag, False otherwise

Return type:

bool

Checks if the Accounts.Service has the requested tag.

ref()
Returns:

self.

Return type:

Accounts.Service

Adds a reference to self.

unref()

Used to unreference the Accounts.Service structure.