Files
MuditaOS/module-apps/TopBarManager.hpp
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

21 lines
603 B
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 <TopBar.hpp>
namespace app
{
class TopBarManager
{
public:
void enableIndicators(const gui::top_bar::Indicators &indicators);
[[nodiscard]] auto getConfiguration() const noexcept -> const gui::top_bar::Configuration &;
void set(gui::top_bar::Indicator indicator, std::shared_ptr<StatusBarVisitor> config);
private:
gui::top_bar::Configuration topBarConfiguration;
};
} // namespace app