|
| enum | RepoFilter { NoFilter,
UserFilter,
BoardFilter,
BoardFilterUserBlacklist
} |
| |
| enum | DeviceMode {
DisableRepoManager = 0x1,
RndMode = 0x2,
ReleaseMode = 0x4,
LenientMode = 0x8,
UpdateMode = 0x10,
AppInstallMode = 0x20
} |
| |
| enum | DisplayType { DeviceManufacturer = 0,
DeviceModel,
DeviceDesignation
} |
| |
| enum | EditMode { Replace = 0x1,
Add = 0x2,
Remove = 0x4
} |
| |
| enum | ReturnValue { Success = 0,
ErrUpdateMode = -10
} |
| |
|
| QPair< QString, QString > | credentials (const QString &scope) |
| |
| QString | credentialsScope (const QString &repoName, bool rndRepo=false) |
| |
| QString | credentialsUrl (const QString &scope) |
| |
| Q_INVOKABLE bool | error () |
| |
| Q_INVOKABLE QString | lastError () |
| |
| QString | repoUrl (const QString &repoName, bool rndRepo=false, QHash< QString, QString > repoParameters=QHash< QString, QString >(), QHash< QString, QString > parametersOverride=QHash< QString, QString >()) |
| |
| Q_INVOKABLE void | unregister () |
| |
|
Q_INVOKABLE QString | flavour () |
| | See SsuCoreConfig::flavour.
|
| |
|
Q_INVOKABLE DeviceModeFlags | deviceMode () |
| | See SsuCoreConfig::deviceMode.
|
| |
|
Q_INVOKABLE QString | domain () |
| | See SsuCoreConfig::domain; returns printable version.
|
| |
|
Q_INVOKABLE QString | brand () |
| | See SsuCoreConfig::brand.
|
| |
|
Q_INVOKABLE bool | isRegistered () |
| | See SsuCoreConfig::isRegistered.
|
| |
|
Q_INVOKABLE QDateTime | lastCredentialsUpdate () |
| | See SsuCoreConfig::lastCredentialsUpdate.
|
| |
|
Q_INVOKABLE QString | release (bool rnd=false) |
| | See SsuCoreConfig::release.
|
| |
|
Q_INVOKABLE void | setDeviceMode (DeviceModeFlags mode, enum EditMode editMode=Replace) |
| | See SsuCoreConfig::setDeviceMode.
|
| |
|
Q_INVOKABLE void | setFlavour (const QString &flavour) |
| | See SsuCoreConfig::setFlavour.
|
| |
|
Q_INVOKABLE void | setRelease (const QString &release, bool rnd=false) |
| | See SsuCoreConfig::setRelease.
|
| |
|
Q_INVOKABLE void | setDomain (const QString &domain) |
| | See SsuCoreConfig::setDomain.
|
| |
|
Q_INVOKABLE bool | useSslVerify () |
| | See SsuCoreConfig::useSslVerify.
|
| |
|
Q_INVOKABLE QStringList | listDomains () |
| |
|
Q_INVOKABLE void | setDomainConfig (const QString &domain, QVariantMap config) |
| |
|
Q_INVOKABLE QVariantMap | getDomainConfig (const QString &domain) |
| |
|
|
bool | registered |
| |
|
DeviceModeFlags | deviceMode |
| |
|
QString | domain |
| |
Definition at line 36 of file ssu.h.
◆ DeviceMode
List of possible device modes
ReleaseMode is defined to make a switch to allowing RnD and Release repositories on a device at the same time easy, if ever needed. Right now any mode where RndMode is not set is treated as ReleaseMode.
If both UpdateMode and AppInstallMode are specified the device behaves like in AppInstallMode.
| Enumerator |
|---|
| DisableRepoManager | Disable automagic repository management.
|
| RndMode | Enable RnD mode for device.
|
| ReleaseMode | Enable Release mode.
|
| LenientMode | Disable strict mode (i.e., keep unmanaged repositories)
|
| UpdateMode | Do repo isolation and similar bits important for updating devices.
|
| AppInstallMode | Do repo isolation, but keep store repository enabled.
|
Definition at line 66 of file ssu.h.
◆ DisplayType
A list of types ssu provides shiny values suitable for displaying
| Enumerator |
|---|
| DeviceManufacturer | Manufacturer, like ACME Corp. Board mappings key "deviceManufacturer".
|
| DeviceModel | Marketed device name, like Pogoblaster 3000. Board mappings key "prettyModel".
|
| DeviceDesignation | Type designation, like NCC-1701. Beard mappings key "deviceDesignation".
|
Definition at line 81 of file ssu.h.
◆ EditMode
Edit modes for variables containing bitmasks
| Enumerator |
|---|
| Replace | Replace the old value with the new one.
|
| Add | Make sure the given value is set in the bitmask.
|
| Remove | Make sure the given value is not set in the bitmask.
|
Definition at line 90 of file ssu.h.
◆ RepoFilter
Filters to control the output of the repository lookup methods
| Enumerator |
|---|
| NoFilter | All repositories (global + user)
|
| UserFilter | Only user configured repositories.
|
| BoardFilter | Only global repositories, with user blacklist ignored.
|
| BoardFilterUserBlacklist | Only global repositories, with user blacklist applied.
|
Definition at line 49 of file ssu.h.
◆ ReturnValue
Return codes to signal success or error conditions
Definition at line 99 of file ssu.h.
◆ credentials()
| QPair< QString, QString > Ssu::credentials |
( |
const QString & |
scope | ) |
|
Find a username/password pair for the given scope
- Returns
- a QPair with username and password, or an empty QPair if scope is invalid
Definition at line 95 of file ssu.cpp.
◆ credentialsScope()
| QString Ssu::credentialsScope |
( |
const QString & |
repoName, |
|
|
bool |
rndRepo = false |
|
) |
| |
Get the scope for a repository, taking into account different scopes for release and RnD repositories
Please note that variable scope is not yet implemented – one default scope is read from the configuration file.
- Returns
- a string containing the scope; it can be used to look up login credentials using credentials()
Definition at line 101 of file ssu.cpp.
◆ credentialsUrl()
| QString Ssu::credentialsUrl |
( |
const QString & |
scope | ) |
|
Return the URL for which credentials scope is valid
Definition at line 144 of file ssu.cpp.
◆ done
Emitted after an asynchronous operation finished
◆ error()
Returns if the last operation was successful
- Return values
-
| true | last operation was successful |
| false | last operation failed, you should check lastError() for details |
Definition at line 150 of file ssu.cpp.
◆ lastError()
| QString Ssu::lastError |
( |
| ) |
|
Return an error message for the last error encountered. The message will not be cleared, check error() to see if the last operation was successful.
Definition at line 231 of file ssu.cpp.
◆ registrationStatusChanged
| void Ssu::registrationStatusChanged |
( |
| ) |
|
|
signal |
Emitted after the devices registration status has changed
◆ repoUrl()
| QString Ssu::repoUrl |
( |
const QString & |
repoName, |
|
|
bool |
rndRepo = false, |
|
|
QHash< QString, QString > |
repoParameters = QHash<QString, QString>(), |
|
|
QHash< QString, QString > |
parametersOverride = QHash<QString, QString>() |
|
) |
| |
Resolve a repository url
- Returns
- the repository URL on success, an empty string on error
Definition at line 312 of file ssu.cpp.
◆ sendRegistration
| void Ssu::sendRegistration |
( |
const QString & |
username, |
|
|
const QString & |
password |
|
) |
| |
|
slot |
Attempt RND device registration, using username and password supplied
- Parameters
-
| username | Jolla username |
| password | Jolla password |
When the operation has finished the done() signal will be sent. You can call error() to check if an error occured, and use lastError() to retrieve the last error message.
Definition at line 409 of file ssu.cpp.
◆ unregister()
Unregister a device. This will clean all registration data from a device, though will not touch the information on ssu server; the information there has to be manually cleaned for a device we don't own anymore, but will be overwritten next time the device gets registered
Definition at line 732 of file ssu.cpp.
◆ updateCredentials
| void Ssu::updateCredentials |
( |
bool |
force = false | ) |
|
|
slot |
Try to update the RND repository credentials. The device needs to be registered for this to work. updateCredentials remembers the time of the last credentials update, and skips updating if only little time has elapsed since the last update. An update may be forced by setting force to true
- Parameters
-
| force | force credentials updating |
When the operation has finished the done() signal will be sent. You can call error() to check if an error occured, and use lastError() to retrieve the last error message.
Definition at line 628 of file ssu.cpp.
◆ updateStoreCredentials
| void Ssu::updateStoreCredentials |
( |
| ) |
|
|
slot |
Try to update credentials for (Jolla) store
Definition at line 704 of file ssu.cpp.
The documentation for this class was generated from the following files: