25 #include "atcore_export.h" 35 Q_PROPERTY(QStringList profileNames READ profileNames NOTIFY profilesChanged)
64 QObject *qmlSingletonRegister(QQmlEngine *engine, QJSEngine *scriptEngine);
72 Q_INVOKABLE QVariantMap readProfile(
const QString &profileName)
const;
81 Q_INVOKABLE QVariant readKey(
const QString &profileName,
const MachineInfo::KEY key)
const;
88 void storeProfile(
const QMap<MachineInfo::KEY, QVariant> &profile)
const;
95 Q_INVOKABLE
void storeProfile(
const QVariantMap &profile)
const;
105 Q_INVOKABLE
bool storeKey(
const QString &profileName,
const MachineInfo::KEY key,
const QVariant &value)
const;
114 Q_INVOKABLE
bool copyProfile(
const QString &srcProfile,
const QString &destProfile,
bool rmSrc =
false)
const;
120 Q_INVOKABLE
bool removeProfile(
const QString &profileName)
const;
126 QStringList profileNames()
const;
139 void profilesChanged()
const;
157 static const QMap<MachineInfo::KEY, MachineInfo::keyInfo>
decoderMap;
163 QSettings *m_settings =
nullptr;
Definition: machineinfo.h:32
QVariant defaultValue
Defaut Value for the key.
Definition: machineinfo.h:152
static const QMap< MachineInfo::KEY, MachineInfo::keyInfo > decoderMap
Map of MachineInfo::KEY , KeyString and DefaultValue.
Definition: machineinfo.h:157
QString name
Key name used in the settings file.
Definition: machineinfo.h:151
KEY
KEYS enum Possible keys for the printer settings.
Definition: machineinfo.h:40
used to hold MachineInfo::KEY name and defaultValues.
Definition: machineinfo.h:150