|
ssu
|
Public Member Functions | |
| QPair< QString, QString > | credentials (const QString &scope) |
| QString | credentialsScope (const QString &repoName, bool rndRepo=false) |
| QString | credentialsUrl (const QString &scope) |
| Q_INVOKABLE QString | flavour () |
| Q_INVOKABLE Ssu::DeviceModeFlags | deviceMode () |
| Q_INVOKABLE QString | domain (bool pretty=false) |
| Q_INVOKABLE QString | brand () |
| Q_INVOKABLE bool | isRegistered () |
| Q_INVOKABLE QDateTime | lastCredentialsUpdate () |
| Q_INVOKABLE QString | release (bool rnd=false) |
| Q_INVOKABLE void | setDeviceMode (Ssu::DeviceModeFlags mode, enum Ssu::EditMode editMode=Ssu::Replace) |
| Q_INVOKABLE void | setFlavour (const QString &flavour) |
| Q_INVOKABLE void | setRelease (const QString &release, bool rnd=false) |
| Q_INVOKABLE void | setDomain (const QString &domain) |
| Q_INVOKABLE bool | useSslVerify () |
| Public Member Functions inherited from SsuSettings | |
| SsuSettings (const QString &fileName, Format format, QObject *parent=0) | |
| SsuSettings (const QString &fileName, Format format, const QString &defaultFileName, QObject *parent=0) | |
| SsuSettings (const QString &fileName, const QString &settingsDirectory, QObject *parent=0) | |
Static Public Member Functions | |
| static SsuCoreConfig * | instance () |
| static QDBusConnection | userSessionBus () |
Definition at line 27 of file ssucoreconfig_p.h.
| QString SsuCoreConfig::brand | ( | ) |
Get the current brand stored in the SSU_CONFIGURATION
Definition at line 85 of file ssucoreconfig.cpp.
| QPair< QString, QString > SsuCoreConfig::credentials | ( | const QString & | scope | ) |
Find a username/password pair for the given scope
Definition at line 28 of file ssucoreconfig.cpp.
| QString SsuCoreConfig::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.
Definition at line 38 of file ssucoreconfig.cpp.
| QString SsuCoreConfig::credentialsUrl | ( | const QString & | scope | ) |
Return the URL for which credentials scope is valid
Definition at line 49 of file ssucoreconfig.cpp.
| Ssu::DeviceModeFlags SsuCoreConfig::deviceMode | ( | ) |
Get the current mode bits for the device
Definition at line 65 of file ssucoreconfig.cpp.
| QString SsuCoreConfig::domain | ( | bool | pretty = false | ) |
Get the current domain used in registration Internally - in the domain is replaced by :, if you need to print the domain name set pretty to true
Definition at line 73 of file ssucoreconfig.cpp.
| QString SsuCoreConfig::flavour | ( | ) |
Get the current flavour when RnD repositories are used
Definition at line 57 of file ssucoreconfig.cpp.
|
static |
Definition at line 20 of file ssucoreconfig.cpp.
| bool SsuCoreConfig::isRegistered | ( | ) |
Return devices RND registration status
| true | device is registered |
| false | device is not registered |
Definition at line 89 of file ssucoreconfig.cpp.
| QDateTime SsuCoreConfig::lastCredentialsUpdate | ( | ) |
Return the date/time when the credentials to access internal ssu servers were updated the last time
Definition at line 98 of file ssucoreconfig.cpp.
| QString SsuCoreConfig::release | ( | bool | rnd = false | ) |
Return the release version string for either a release, or a RnD snapshot
Definition at line 103 of file ssucoreconfig.cpp.
| void SsuCoreConfig::setDeviceMode | ( | Ssu::DeviceModeFlags | mode, |
| enum Ssu::EditMode | editMode = Ssu::Replace ) |
Set mode bits for the device
Definition at line 109 of file ssucoreconfig.cpp.
| void SsuCoreConfig::setDomain | ( | const QString & | domain | ) |
Set the domain string (usually something like nemo, jolla, ..)
Definition at line 141 of file ssucoreconfig.cpp.
| void SsuCoreConfig::setFlavour | ( | const QString & | flavour | ) |
Set the flavour used when resolving RND repositories
Definition at line 125 of file ssucoreconfig.cpp.
| void SsuCoreConfig::setRelease | ( | const QString & | release, |
| bool | rnd = false ) |
Set the release version string for either a release, or a RnD snapshot
Definition at line 133 of file ssucoreconfig.cpp.
|
static |
Return a DBus connection object connected to the session bus of the active user
Definition at line 157 of file ssucoreconfig.cpp.
| bool SsuCoreConfig::useSslVerify | ( | ) |
Return configuration settings regarding ssl verification
| true | SSL verification must be used; that's the default if not configured |
| false | SSL verification should be disabled |
Definition at line 149 of file ssucoreconfig.cpp.