mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-06-26 23:21:43 +00:00
d320b6511d
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
30 lines
434 B
C++
30 lines
434 B
C++
#pragma once
|
|
|
|
namespace sys
|
|
{
|
|
struct Event;
|
|
}
|
|
|
|
namespace chat::ui
|
|
{
|
|
|
|
enum class ChatUiState
|
|
{
|
|
ChannelList,
|
|
Conversation,
|
|
Compose,
|
|
};
|
|
|
|
class IChatUiRuntime
|
|
{
|
|
public:
|
|
virtual ~IChatUiRuntime() = default;
|
|
|
|
virtual void update() = 0;
|
|
virtual void onChatEvent(sys::Event* event) = 0;
|
|
virtual ChatUiState getState() const = 0;
|
|
virtual bool isTeamConversationActive() const = 0;
|
|
};
|
|
|
|
} // namespace chat::ui
|