mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -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.
21 lines
603 B
C++
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
|