mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 05:47:58 -05:00
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
34 lines
770 B
C++
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 "";
|
|
}
|