mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-28 16:58:59 -04:00
37 lines
968 B
C++
37 lines
968 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "module-db/Interface/SettingsRecord_v2.hpp"
|
|
#include <Common/Query.hpp>
|
|
#include <string>
|
|
#include <queries/RecordQuery.hpp>
|
|
#include <queries/Filter.hpp>
|
|
|
|
namespace db::query::settings
|
|
{
|
|
class SettingsQuery : public Query
|
|
{
|
|
const std::string path;
|
|
|
|
public:
|
|
SettingsQuery(std::string path);
|
|
|
|
[[nodiscard]] auto getPath() const noexcept -> std::string;
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class SettingsResult : public QueryResult
|
|
{
|
|
SettingsRecord_v2 record;
|
|
|
|
public:
|
|
SettingsResult(SettingsRecord_v2 record);
|
|
[[nodiscard]] auto getResult() const noexcept -> SettingsRecord_v2;
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
} // namespace db::query::settings
|