mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-17 02:19:06 -05:00
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "BasePresenter.hpp"
|
|
|
|
#include <module-apps/application-notes/model/NotesListModel.hpp>
|
|
|
|
namespace app::notes
|
|
{
|
|
class SearchEngineWindowContract
|
|
{
|
|
public:
|
|
class View
|
|
{
|
|
public:
|
|
virtual ~View() noexcept = default;
|
|
virtual void emptySearch() = 0;
|
|
virtual void processValidSearch(const std::string &searchText) = 0;
|
|
};
|
|
class Presenter : public BasePresenter<SearchEngineWindowContract::View>
|
|
{
|
|
public:
|
|
virtual ~Presenter() noexcept = default;
|
|
virtual void searchFor(const std::string &searchText) = 0;
|
|
};
|
|
};
|
|
|
|
class SearchEngineWindowPresenter : public SearchEngineWindowContract::Presenter
|
|
{
|
|
public:
|
|
SearchEngineWindowPresenter() = default;
|
|
void searchFor(const std::string &searchText) override;
|
|
};
|
|
} // namespace app::notes
|