Files
MuditaOS/module-apps/application-notes/data/NoteSwitchData.hpp
Piotr Tański 50a73ca638 [EGD-7051] Fixed saving multiple notes at once
When creating a new note, it was possible to save multiple notes
with 1 click.
2021-07-01 16:00:56 +02:00

23 lines
567 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 <module-gui/gui/SwitchData.hpp>
#include <module-db/Interface/NotesRecord.hpp>
namespace app::notes
{
class NoteSwitchData : public gui::SwitchData
{
public:
explicit NoteSwitchData(std::shared_ptr<NotesRecord> record);
std::shared_ptr<NotesRecord> getRecord() noexcept;
private:
std::shared_ptr<NotesRecord> record = nullptr;
};
} // namespace app::notes