~aleteoryx/muditaos

ref: 060a472d479fb012252511e88c1eabd4ff4b5fb9 muditaos/module-services/service-appmgr/messages/ApplicationInitialised.cpp -rw-r--r-- 896 bytes
060a472d — Mateusz Grzegorzek [BH-663] Fix CMake in service-antenna 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-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <service-appmgr/messages/ApplicationInitialised.hpp>

namespace app::manager
{
    ApplicationInitialised::ApplicationInitialised(const ApplicationName &senderName,
                                                   StartupStatus _status,
                                                   StartInBackground _startInBackground)
        : BaseMessage(MessageType::APMInit, senderName), status{_status}, startInBackground{_startInBackground}
    {}

    [[nodiscard]] auto ApplicationInitialised::getStatus() const noexcept -> StartupStatus
    {
        return status;
    }

    [[nodiscard]] auto ApplicationInitialised::isBackgroundApplication() const noexcept -> bool
    {
        return startInBackground.value;
    }
} // namespace app::manager