Styles was added
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#include "settingsservice.h"
|
||||
|
||||
namespace Defaults {
|
||||
|
||||
constexpr auto GuestUserId = "2641ffe8cd4311eda27f0242ac120002";
|
||||
|
||||
}
|
||||
|
||||
QVariant SettingsService::value(const QString &key, const QVariant &defaultValue) const
|
||||
{
|
||||
return m_settings.value(key, defaultValue);
|
||||
@@ -9,3 +15,13 @@ void SettingsService::setValue(const QString &key, const QVariant &value)
|
||||
{
|
||||
m_settings.setValue(key, value);
|
||||
}
|
||||
|
||||
QString SettingsService::selectedUserId() const
|
||||
{
|
||||
return m_settings.value("selected_user", Defaults::GuestUserId).toString();
|
||||
}
|
||||
|
||||
void SettingsService::setSelectedUserId(const QString &userId)
|
||||
{
|
||||
m_settings.setValue("selected_user", userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user