libaccounts-qt  1.1
ServiceType Class Reference

Representation of an account service type. More...

#include <Accounts/ServiceType>

List of all members.

Public Member Functions

QString name () const
 Returns the name (ID) of the service type.
QString displayName () const
QString trCatalog () const
QString iconName () const
const QDomDocument domDocument () const

Detailed Description

Representation of an account service type.

The ServiceType object represents an account service type. It can be used to retrieve some basic properties of the service type (such as name and icon) and to get access to the contents of the XML file which defines it.

Definition at line 45 of file service-type.h.


Member Function Documentation

QString displayName ( ) const
Returns:
The display name of the service type; this is a string that could be shown in the UI to describe the service type to the user.

The library attempts to translate this string by passing it to the qtTrId() function; in order for this to work you must make sure that the translation catalogue has been loaded before, if needed.

Definition at line 80 of file service-type.cpp.

const QDomDocument domDocument ( ) const
Returns:
The DOM of the whole XML service file

Definition at line 113 of file service-type.cpp.

QString iconName ( ) const
Returns:
The icon name

Definition at line 105 of file service-type.cpp.

QString trCatalog ( ) const
Returns:
The name of the translation catalog, which can be used to translate the displayName()

Definition at line 97 of file service-type.cpp.


The documentation for this class was generated from the following files: