DtChatWindowInterface defines the operations that DtVreChatManager uses to drive the chat UI without depending on Qt. Implementations are free to use Qt internally; callers only see this Qt-free surface.
#include <vreChatWindowInterface.h>
◆ ~DtChatWindowInterface()
| virtual makVre::DtChatWindowInterface::~DtChatWindowInterface |
( |
| ) |
|
|
virtualdefault |
◆ send()
| virtual void makVre::DtChatWindowInterface::send |
( |
const std::string & | message | ) |
|
|
pure virtual |
Sends a message or slash command to the chat system.
- Parameters
-
| message | Text message or /command string |
Implemented in makVre::DtVreChatWindow.
◆ sendChatMessage()
| virtual void makVre::DtChatWindowInterface::sendChatMessage |
( |
const std::string & | message, |
|
|
const std::string & | channel, |
|
|
int | force ) |
|
pure virtual |
Sends a chat message to a specific channel.
- Parameters
-
| message | Text message to send |
| channel | Target channel name |
| force | Force identifier for the channel |
Implemented in makVre::DtVreChatWindow.
◆ sendToSystemChannel()
| virtual void makVre::DtChatWindowInterface::sendToSystemChannel |
( |
const std::string & | message | ) |
|
|
pure virtual |
Sends a message to the system (notification) channel.
- Parameters
-
| message | Text to display in the system channel |
Implemented in makVre::DtVreChatWindow.
◆ isChannelActive()
| virtual bool makVre::DtChatWindowInterface::isChannelActive |
( |
const std::string & | channelName, |
|
|
int | force ) const |
|
pure virtual |
Checks whether a channel is currently active.
- Parameters
-
| channelName | Name of the channel to check |
| force | Force identifier of the channel |
- Returns
- True if the channel is active, false otherwise
Implemented in makVre::DtVreChatWindow.
◆ addChannel()
| virtual bool makVre::DtChatWindowInterface::addChannel |
( |
const std::string & | channelName, |
|
|
int | force, |
|
|
bool | active, |
|
|
const std::vector< std::string > & | entities ) |
|
pure virtual |
Adds a channel to the available channels list.
- Parameters
-
| channelName | Name of the channel |
| force | Force identifier associated with the channel |
| active | Whether the channel starts active |
| entities | List of entity markings that belong to this channel |
- Returns
- True if the channel was added, false if it already existed
Implemented in makVre::DtVreChatWindow.
◆ updateAvailableChannels()
| virtual void makVre::DtChatWindowInterface::updateAvailableChannels |
( |
| ) |
|
|
pure virtual |
◆ clearChannels()
| virtual void makVre::DtChatWindowInterface::clearChannels |
( |
| ) |
|
|
pure virtual |
◆ setEntityMarkingText()
| virtual void makVre::DtChatWindowInterface::setEntityMarkingText |
( |
const std::string & | text | ) |
|
|
pure virtual |
Sets the entity marking text used for username generation.
- Parameters
-
| text | Marking (call sign) of the local entity |
Implemented in makVre::DtVreChatWindow.
◆ setEntityForce()
| virtual void makVre::DtChatWindowInterface::setEntityForce |
( |
int | force | ) |
|
|
pure virtual |
◆ setEntityRole()
| virtual void makVre::DtChatWindowInterface::setEntityRole |
( |
const std::string & | role | ) |
|
|
pure virtual |
Sets the entity role used for username generation.
- Parameters
-
| role | Role description string |
Implemented in makVre::DtVreChatWindow.
◆ updateUsername()
| virtual void makVre::DtChatWindowInterface::updateUsername |
( |
| ) |
|
|
pure virtual |
◆ displayReceivedMessage()
| virtual void makVre::DtChatWindowInterface::displayReceivedMessage |
( |
const std::string & | username, |
|
|
int | force, |
|
|
const std::string & | channel, |
|
|
const std::string & | message ) |
|
pure virtual |
Displays an incoming chat message received over the network.
- Parameters
-
| username | Sender's username |
| force | Force identifier of the sender |
| channel | Channel the message arrived on |
| message | Raw message text (will be HTML-converted by the implementation) |
Implemented in makVre::DtVreChatWindow.
◆ open()
| virtual void makVre::DtChatWindowInterface::open |
( |
| ) |
|
|
pure virtual |
◆ close()
| virtual void makVre::DtChatWindowInterface::close |
( |
| ) |
|
|
pure virtual |
◆ openOrFocus()
| virtual void makVre::DtChatWindowInterface::openOrFocus |
( |
| ) |
|
|
pure virtual |
◆ togglePinChat()
| virtual void makVre::DtChatWindowInterface::togglePinChat |
( |
| ) |
|
|
pure virtual |
◆ isVisible()
| virtual bool makVre::DtChatWindowInterface::isVisible |
( |
| ) |
const |
|
pure virtual |
◆ isFullChatVisible()
| virtual bool makVre::DtChatWindowInterface::isFullChatVisible |
( |
| ) |
const |
|
pure virtual |
Returns whether the full chat panel (not just the notification strip) is visible.
Implemented in makVre::DtVreChatWindow.
◆ isShowingAllowed()
| virtual bool makVre::DtChatWindowInterface::isShowingAllowed |
( |
| ) |
const |
|
pure virtual |
◆ setShowingAllowed()
| virtual void makVre::DtChatWindowInterface::setShowingAllowed |
( |
bool | canShow | ) |
|
|
pure virtual |
Sets whether the chat window is permitted to be shown.
- Parameters
-
| canShow | True to permit display, false to block it |
Implemented in makVre::DtVreChatWindow.
◆ updatePositionFromState()
| virtual void makVre::DtChatWindowInterface::updatePositionFromState |
( |
const std::string & | state | ) |
|
|
pure virtual |
Adjusts chat window layout for the given application state.
- Parameters
-
| state | Application state identifier string |
Implemented in makVre::DtVreChatWindow.
The documentation for this class was generated from the following file: