2024-10-06 00:31:31 +01:00
|
|
|
#include "Model.hpp"
|
|
|
|
|
|
|
|
#include <QSettings>
|
|
|
|
|
|
|
|
#include <wobjectimpl.h>
|
|
|
|
W_OBJECT_IMPL(Hardware::Settings::Model)
|
|
|
|
|
|
|
|
namespace Hardware
|
|
|
|
{
|
|
|
|
namespace Settings
|
|
|
|
{
|
|
|
|
namespace Parameters
|
|
|
|
{
|
2024-12-13 00:10:19 +00:00
|
|
|
SETTINGS_PARAMETER_IMPL(Device){QStringLiteral("Hardware/Device"), "None"};
|
2024-10-06 00:31:31 +01:00
|
|
|
static auto list()
|
|
|
|
{
|
2024-12-13 00:10:19 +00:00
|
|
|
return std::tie(Device);
|
2024-10-06 00:31:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Model::Model(QSettings& set, const score::ApplicationContext& ctx)
|
|
|
|
{
|
|
|
|
score::setupDefaultSettings(set, Parameters::list(), *this);
|
|
|
|
}
|
|
|
|
|
2024-12-13 00:10:19 +00:00
|
|
|
SCORE_SETTINGS_PARAMETER_CPP(QString, Model, Device)
|
2024-10-06 00:31:31 +01:00
|
|
|
}
|
|
|
|
}
|