mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-17 19:44:09 -04:00
Stack plus minimum tests added Updated to master Removed useless or adressed TODOS Constants name applied Renamed searchModel to searchRequestModel Review applied We should remove legacy window names Bell names fixes
37 lines
1.1 KiB
C++
37 lines
1.1 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 "AppMessage.hpp"
|
|
#include "Disposition.hpp"
|
|
#include <functional>
|
|
|
|
namespace app
|
|
{
|
|
class AppSwitchWindowPopupMessage : public AppSwitchWindowMessage
|
|
{
|
|
const gui::popup::Disposition disposition;
|
|
|
|
public:
|
|
AppSwitchWindowPopupMessage(const std::string &window,
|
|
std::unique_ptr<gui::SwitchData> data,
|
|
SwitchReason reason,
|
|
const gui::popup::Disposition &disposition)
|
|
: AppSwitchWindowMessage(
|
|
window, "", std::forward<decltype(data)>(data), gui::ShowMode::GUI_SHOW_INIT, reason),
|
|
disposition(disposition)
|
|
{}
|
|
|
|
virtual bool toPopupRequest() const override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
std::pair<const std::string &, gui::popup::Disposition> getSwitchData() override
|
|
{
|
|
return {window, disposition};
|
|
}
|
|
};
|
|
} // namespace app
|