mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-02 10:58:45 -05:00
36 lines
864 B
C++
36 lines
864 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <Common/Query.hpp>
|
|
#include "Interface/NotesRecord.hpp"
|
|
|
|
namespace db::query
|
|
{
|
|
class QueryNoteRemove : public Query
|
|
{
|
|
public:
|
|
explicit QueryNoteRemove(unsigned int recordId);
|
|
[[nodiscard]] unsigned int getRecordId() const noexcept;
|
|
[[nodiscard]] std::string debugInfo() const override;
|
|
|
|
private:
|
|
unsigned int recordId;
|
|
};
|
|
|
|
class NoteRemoveResult : public QueryResult
|
|
{
|
|
public:
|
|
explicit NoteRemoveResult(bool isSuccess);
|
|
|
|
[[nodiscard]] bool succeed() const noexcept;
|
|
[[nodiscard]] std::string debugInfo() const override;
|
|
|
|
private:
|
|
bool isSuccess;
|
|
};
|
|
} // namespace db::query
|