8#ifndef _SSUCORECONFIG_P_H
9#define _SSUCORECONFIG_P_H
15#ifndef SSU_CONFIGURATION
17#define SSU_CONFIGURATION "/etc/ssu/ssu.ini"
20#ifndef SSU_DEFAULT_CONFIGURATION
22#define SSU_DEFAULT_CONFIGURATION "/usr/share/ssu/ssu-defaults.ini"
27class SsuCoreConfig:
public SsuSettings
32 static SsuCoreConfig *instance();
37 QPair<QString, QString>
credentials(
const QString &scope);
67 Q_INVOKABLE QString
domain(
bool pretty =
false);
72 Q_INVOKABLE QString
brand();
87 Q_INVOKABLE QString
release(
bool rnd =
false);
118 Q_DISABLE_COPY(SsuCoreConfig)
120 static SsuCoreConfig *ssuCoreConfig;
Q_INVOKABLE QString domain(bool pretty=false)
QString credentialsScope(const QString &repoName, bool rndRepo=false)
Q_INVOKABLE void setFlavour(const QString &flavour)
Q_INVOKABLE bool useSslVerify()
Q_INVOKABLE QDateTime lastCredentialsUpdate()
Q_INVOKABLE Ssu::DeviceModeFlags deviceMode()
Q_INVOKABLE void setDeviceMode(Ssu::DeviceModeFlags mode, enum Ssu::EditMode editMode=Ssu::Replace)
Q_INVOKABLE bool isRegistered()
Q_INVOKABLE void setDomain(const QString &domain)
QString credentialsUrl(const QString &scope)
static QDBusConnection userSessionBus()
Q_INVOKABLE QString release(bool rnd=false)
Q_INVOKABLE QString brand()
Q_INVOKABLE void setRelease(const QString &release, bool rnd=false)
Q_INVOKABLE QString flavour()
QPair< QString, QString > credentials(const QString &scope)
@ Replace
Replace the old value with the new one.
#define SSU_DEFAULT_CONFIGURATION
Path to the main ssu configuration file.
#define SSU_CONFIGURATION
Path to the main ssu configuration file.