mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-26 10:02:13 -04:00
[EGD-4553] Notes search engine implemented. (#1112)
This commit is contained in:
22
module-apps/application-notes/data/NotesFoundData.cpp
Normal file
22
module-apps/application-notes/data/NotesFoundData.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user