Settings

component fbx.application.Settings

Settings convenience object

If user has a profile open when application is launched, application may save data that can survive session. This object handles a convenience API for save/restore of settings.

Application may define any properties with simple types (number, string) in this object. On object instantiation, all matching values are looked up in the settings. Upon value modification, settings are saved back.

A signal is raised when settings have been loaded.

Sample usage:

import fbx.application 1.0

Application {
    id: app

    Settings {
        id: settings

    onReady: app.sessionOpen()

        property string userName
        property string sessionId
    }

    ...
}
signal ready()

Emitted when settings are loaded. After this signal is raised, there is no more to expect from.