Files
MuditaOS/module-apps/TopBarManager.cpp
Michał Kamoń eec4370cdc [EGD-5703] Fix SimCard topBar icon on Desktop
In initial design a `TobBar`'s SimCard icon with number is supposed
to display on the home screen only if there are two cards inserted.
Because of the hardware limitations (there is no way of telling if
there is a single or two cards inserted) the established consensus is
that home screen should not display SimCard widget unless it's
indication error state.

Although in the task description there is only home screen mentioned,
the behaviour was established for all `ApplicationDesktop`'s windows.
2021-04-27 08:14:17 +02:00

24 lines
712 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 "TopBarManager.hpp"
#include "TopBar.hpp"
namespace app
{
void TopBarManager::enableIndicators(const gui::top_bar::Indicators &indicators)
{
topBarConfiguration.enable(indicators);
}
auto TopBarManager::getConfiguration() const noexcept -> const gui::top_bar::Configuration &
{
return topBarConfiguration;
}
void TopBarManager::set(gui::top_bar::Indicator indicator, std::shared_ptr<StatusBarVisitor> config)
{
topBarConfiguration.setIndicatorModifier(indicator, std::move(config));
}
} // namespace app