mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 10:28:52 -05:00
23 lines
773 B
C++
23 lines
773 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "NotesFoundData.hpp"
|
|
|
|
namespace app::notes
|
|
{
|
|
NotesFoundData::NotesFoundData(std::string searchText, std::vector<NotesRecord> notes)
|
|
: gui::SwitchData(std::string{"NotesFoundData"}), searchText{std::move(searchText)}, recordsFound{
|
|
std::move(notes)}
|
|
{}
|
|
|
|
const std::string &NotesFoundData::getSearchText() const noexcept
|
|
{
|
|
return searchText;
|
|
}
|
|
|
|
const std::vector<NotesRecord> &NotesFoundData::getFoundRecords() const noexcept
|
|
{
|
|
return recordsFound;
|
|
}
|
|
} // namespace app::notes
|