summaryrefslogtreecommitdiff
path: root/qmlplugin/loggerSettings.cpp
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-06-02 13:58:20 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-06-02 14:31:05 +0100
commit7e53a178ec0b87d4edb7459a926f43baa89279bc (patch)
tree3c6a496fe03d33397b1be0279d74381b4db3aeb5 /qmlplugin/loggerSettings.cpp
parent6b58a5676b3ffa288052e638d07c241068930990 (diff)
settings: add step goal target
currently this doesn't interface with the daemon in any way, this is added for future use
Diffstat (limited to 'qmlplugin/loggerSettings.cpp')
-rw-r--r--qmlplugin/loggerSettings.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/qmlplugin/loggerSettings.cpp b/qmlplugin/loggerSettings.cpp
index 3aa987c..d7849c5 100644
--- a/qmlplugin/loggerSettings.cpp
+++ b/qmlplugin/loggerSettings.cpp
@@ -68,3 +68,21 @@ void LoggerSettings::setStepCounterInterval(int value)
{
this->m_settings->setValue("stepCounter/interval", value);
}
+
+bool LoggerSettings::getStepGoalEnabled()
+{
+ return this->m_settings->value("stepCounter/goal0/enabled", false).toBool();
+}
+void LoggerSettings::setStepGoalEnabled(bool value)
+{
+ this->m_settings->setValue("stepCounter/goal0/enabled", value);
+}
+int LoggerSettings::getStepGoalTarget()
+{
+ return this->m_settings->value("stepCounter/goal0/target", 0).toInt();
+}
+
+void LoggerSettings::setStepGoalTarget(int value)
+{
+ this->m_settings->setValue("stepCounter/goal0/target", value);
+}