MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Accounts::ServiceType Class Reference

Representation of an account service type. More...

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.


Member Function Documentation

QString Accounts::ServiceType::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.

const QDomDocument Accounts::ServiceType::domDocument (  )  const
Returns:
The DOM of the whole XML service file
QString Accounts::ServiceType::iconName (  )  const
Returns:
The icon name
QString Accounts::ServiceType::name (  )  const

Returns the name (ID) of the service type.

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

Copyright (C) 2009-2011 Nokia Corporation.
LGPL
MeeGo 1.2 Harmattan API