![]() |
COLNEO Pro 1.0
|
Interface for Application API.
Register Javascript object with cnApplicationAPI.
Functions | |
INFO | |
| ApiJsonResponse | getInfo () |
USER MANAGEMENT | |
| ApiJsonResponse | getUser () |
| ApiJsonResponse | loginUser (QString userid, QString authcode)=0 |
| ApiJsonResponse | logoutUser ()=0 |
| ApiJsonResponse | getAccessToken () |
Public Member Functions | |
| ApiJsonResponse | getAvailableLanguages () |
| ApiJsonResponse | getRecentProjects () |
| ApiJsonResponse | getTemplates () |
| ApiJsonResponse | removeFromRecentProjects (QString &filename) |
Constructors, Destructor | |
Interface IApiObject | |
SETTINGS | |
| ApiJsonResponse | setSettings (QVariantMap map) |
| ApiJsonResponse | getSettingsValue (QString key, bool fallbackToDefault=true) |
| ApiJsonResponse | getSettingsDefaultValue (QString key) |
| ApiJsonResponse | setSettingsValue (QString key, QVariant &v) |
| ApiJsonResponse | getSettingsSupportedKeys () |
| ApiJsonResponse | resetSettings () |
| ApiJsonResponse | resetSettingsValue (QString key) |
| ApiJsonResponse | getSettings () |
|
slot |
Get Access Token of logged in user.
The user is asked to confirm access to the access token in a dialog.
| ApiJsonResponse getAvailableLanguages | ( | ) |
Get languages which are supported by this application.
|
slot |
Usable in scripted properties
Get application information.
| ApiJsonResponse getRecentProjects | ( | ) |
|
slot |
Usable in scripted properties
Get application setting.
| ApiJsonResponse getSettingsDefaultValue | ( | QString | key | ) |
Get application settings default value.
| ApiJsonResponse getSettingsSupportedKeys | ( | ) |
Usable in scripted properties
Get list of application setting supported keys.
| ApiJsonResponse getSettingsValue | ( | QString | key, |
| bool | fallbackToDefault = true ) |
Usable in scripted properties
Get application settings value.
| ApiJsonResponse getTemplates | ( | ) |
Get project templates.
|
slot |
Usable in scripted properties
Get data of the user currently logged in.
Since the user is identified by email 'userid' and 'email' are equvivalent.
|
pure virtualslot |
Login user using an authentication code.
|
pure virtualslot |
Logout user.
| ApiJsonResponse removeFromRecentProjects | ( | QString & | filename | ) |
Removes a recent project with the given filename from the recent project list
| ApiJsonResponse resetSettings | ( | ) |
Usable in scripted properties
Reset settings to default values. Values of settings without defaiult value are not changed.
| ApiJsonResponse resetSettingsValue | ( | QString | key | ) |
Reset a settings key to defualt value.
| ApiJsonResponse setSettings | ( | QVariantMap | map | ) |
set application settings.
| ApiJsonResponse setSettingsValue | ( | QString | key, |
| QVariant & | v ) |
Usable in scripted properties
Set application settings value for given key.