mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-09 05:21:40 +00:00
32 lines
696 B
C++
32 lines
696 B
C++
#pragma once
|
|
|
|
#include "ui/chat_ui_runtime.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace chat::ui
|
|
{
|
|
|
|
class GlobalChatUiRuntime final : public IChatUiRuntime
|
|
{
|
|
public:
|
|
GlobalChatUiRuntime();
|
|
~GlobalChatUiRuntime() override;
|
|
|
|
void setActiveRuntime(IChatUiRuntime* runtime);
|
|
IChatUiRuntime* getActiveRuntime() const;
|
|
|
|
void update() override;
|
|
void onChatEvent(sys::Event* event) override;
|
|
ChatUiState getState() const override;
|
|
bool isTeamConversationActive() const override;
|
|
|
|
private:
|
|
class KeyVerificationModalRuntime;
|
|
|
|
IChatUiRuntime* active_runtime_ = nullptr;
|
|
std::unique_ptr<KeyVerificationModalRuntime> key_verification_runtime_;
|
|
};
|
|
|
|
} // namespace chat::ui
|