mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 10:28:52 -05: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
21 lines
618 B
C++
21 lines
618 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "PopupBlueprintFactory.hpp"
|
|
|
|
namespace app
|
|
{
|
|
void PopupBlueprintFactory::registerBlueprint(gui::popup::ID id, gui::popup::Blueprint &&bp)
|
|
{
|
|
blueprints[id] = bp;
|
|
}
|
|
|
|
std::optional<gui::popup::Blueprint> PopupBlueprintFactory::getBlueprint(gui::popup::ID id)
|
|
{
|
|
if (auto blueprint = blueprints.find(id); blueprint != blueprints.end()) {
|
|
return {blueprint->second};
|
|
}
|
|
return std::nullopt;
|
|
}
|
|
} // namespace app
|