~aleteoryx/muditaos

ref: 7bcc1c9bd4add82ca6d53aa22e12e620551ba172 muditaos/module-apps/TopBarManager.cpp -rw-r--r-- 631 bytes
7bcc1c9b — Lucjan Bryndza [EGD-6013] Fix no copy syscall 4 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.set(timeMode);
    }
} // namespace app