Ubuntu.OnlineAccounts.ApplicationModel

A model of the applications using online accounts. More...

Import Statement: import Ubuntu.OnlineAccounts 0.1

Properties

Methods

  • variant get(int row, string roleName)

Detailed Description

The ApplicationModel is a model representing the applications using online accounts installed on the system.

In the current implementation, the model is valid only if its ApplicationModel::service property is set to a valid service ID.

The model defines the following roles:

  • applicationId is the unique identifier of the application
  • displayName is the application display name
  • iconName is the name of the application icon
  • serviceUsage is a description of how the application uses the service; this is set to a valid value only if the ApplicationModel::service property is set to a valid service ID.
  • application is the Application object
  • translations, the localization domain for translating the serviceUsage field

Property Documentation

count : int

The number of items in the model.


service : string

If set, the model will list only those applications which can use this specific service.


Method Documentation

variant get(int row, string roleName)

Returns the data at row for the role roleName.