Accounts.ServiceType

Fields

None

Methods

class list_free (list)
  get_description ()
  get_display_name ()
  get_file_contents (contents, len)
  get_i18n_domain ()
  get_icon_name ()
  get_name ()
  get_tags ()
  has_tag (tag)
  ref ()
  unref ()

Details

class Accounts.ServiceType

Opaque structure. Use related accessor functions.

classmethod list_free(list)
Parameters:list ([Accounts.ServiceType]) – a GLib.List of service types returned by some function of this library, such as Accounts.Manager.list_service_types().

Frees the list list.

get_description()
Returns:the description of self, or None upon failure.
Return type:str

Get the description of the Accounts.ServiceType.

New in version 1.2.

get_display_name()
Returns:the display name of self.
Return type:str

Get the display name of the Accounts.ServiceType.

get_file_contents(contents, len)
Parameters:
  • contents (str) – location to receive the pointer to the file contents.
  • len (int) – location to receive the length of the file, in bytes.

Gets the contents of the XML service type 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 some error occurs, contents is set to None.

get_i18n_domain()
Returns:the translation domain.
Return type:str

Get the translation domain of the Accounts.ServiceType.

get_icon_name()
Returns:the name of the icon of self.
Return type:str

Get the icon name of the Accounts.ServiceType.

get_name()
Returns:the name of self.
Return type:str

Get the name of the Accounts.ServiceType.

get_tags()
Returns:GLib.List of tags for self. The list must be freed with g_list_free(). Entries are owned by the Accounts.ServiceType type and must not be free’d.
Return type:[str]

Get list of tags specified for the Accounts.ServiceType.

has_tag(tag)
Parameters:tag (str) – the tag to check for.
Returns:True if the Accounts.ServiceType has the tag, False otherwise
Return type:bool

Check if the Accounts.ServiceType has the requested tag.

ref()
Returns:self.
Return type:Accounts.ServiceType

Adds a reference to self.

unref()

Used to unreference the Accounts.ServiceType structure.