mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-06 04:49:04 -05:00
1. Prepare Pure and Bell specific `Application` classes and add them to `app` target: - `products/BellHybrid/apps/Application.cpp` - `products/PurePhone/apps/Application.cpp` 2. Update `CMakeLists.txt` files. 3. Move `ApplicationBell` implementation to Bell-specific `Application` class and remove `ApplicationBell` files. 4. Change Bell apps parent classes from `ApplicationBell` to Bell-specific `Application` class. 5. Rename `Application` to `ApplicationCommon` in the rest of the files.
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
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 <memory>
|
|
|
|
#include "AppWindow.hpp"
|
|
|
|
#include <apps-common/ApplicationCommon.hpp>
|
|
#include <module-apps/application-notes/presenter/NotesSearchResultPresenter.hpp>
|
|
|
|
#include <module-gui/gui/widgets/ListView.hpp>
|
|
|
|
namespace app::notes
|
|
{
|
|
class SearchResultsWindow : public gui::AppWindow, public NotesSearchWindowContract::View
|
|
{
|
|
public:
|
|
explicit SearchResultsWindow(app::ApplicationCommon *app,
|
|
std::unique_ptr<NotesSearchWindowContract::Presenter> &&windowPresenter);
|
|
~SearchResultsWindow() noexcept override;
|
|
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
bool onDatabaseMessage(sys::Message *msg) override;
|
|
void onBeforeShow(gui::ShowMode mode, gui::SwitchData *data) override;
|
|
|
|
std::unique_ptr<NotesSearchWindowContract::Presenter> presenter;
|
|
|
|
private:
|
|
void onNothingFound(const std::string &searchText) override;
|
|
virtual void onResultsFilled() override;
|
|
gui::ListView *list = nullptr;
|
|
};
|
|
} // namespace app::notes
|