mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 23:17:35 -04:00
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.
24 lines
712 B
C++
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
|