~aleteoryx/muditaos

ref: 269efac576758a04787949d615a75e4bcbf3d166 muditaos/module-apps/TopBarManager.cpp -rw-r--r-- 639 bytes
269efac5 — Wojtek Rzepecki [EGD-6285] Fix system close 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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::TimeMode timeMode)
    {
        topBarConfiguration.setTimeMode(timeMode);
    }
} // namespace app