8 #include "atcore_export.h"
18 Q_PROPERTY(QStringList profileNames READ profileNames NOTIFY profilesChanged)
47 QObject *qmlSingletonRegister(QQmlEngine *engine, QJSEngine *scriptEngine);
55 Q_INVOKABLE QVariantMap readProfile(
const QString &profileName)
const;
64 Q_INVOKABLE QVariant readKey(
const QString &profileName,
const MachineInfo::KEY key)
const;
71 void storeProfile(
const QMap<MachineInfo::KEY, QVariant> &profile)
const;
78 Q_INVOKABLE
void storeProfile(
const QVariantMap &profile)
const;
88 Q_INVOKABLE
bool storeKey(
const QString &profileName,
const MachineInfo::KEY key,
const QVariant &value)
const;
97 Q_INVOKABLE
bool copyProfile(
const QString &srcProfile,
const QString &destProfile,
bool rmSrc =
false)
const;
103 Q_INVOKABLE
bool removeProfile(
const QString &profileName)
const;
109 QStringList profileNames()
const;
122 void profilesChanged()
const;
140 static const QMap<MachineInfo::KEY, MachineInfo::keyInfo>
decoderMap;
146 QSettings *m_settings =
nullptr;