Files
MuditaOS/module-apps/application-call/data/CallState.hpp
alek 1f7d471831 [EGD-4429] Fix gui issues in application call
Fix the persistent answer and reject labels in Call Window issue
Fix the wrong call duration issue in both Call and Calls apps
Fix the not working call ignoring issue
2021-01-18 11:16:43 +01:00

34 lines
770 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
namespace app::call
{
enum class State
{
IDLE,
INCOMING_CALL,
OUTGOING_CALL,
CALL_IN_PROGRESS,
CALL_ENDED
};
}
inline auto c_str(app::call::State state) -> const char *
{
switch (state) {
case app::call::State::IDLE:
return "IDLE";
case app::call::State::INCOMING_CALL:
return "INCOMING_CALL";
case app::call::State::OUTGOING_CALL:
return "OUTGOING_CALL";
case app::call::State::CALL_IN_PROGRESS:
return "CALL_IN_PROGRESS";
case app::call::State::CALL_ENDED:
return "CALL_ENDED";
}
return "";
}