VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtChatWindowInterface Class Referenceabstract

Detailed Description

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>

Inheritance diagram for makVre::DtChatWindowInterface:
[legend]

Public Member Functions

virtual ~DtChatWindowInterface ()=default
 
virtual void send (const std::string &message)=0
 
virtual void sendChatMessage (const std::string &message, const std::string &channel, int force)=0
 
virtual void sendToSystemChannel (const std::string &message)=0
 
virtual bool isChannelActive (const std::string &channelName, int force) const =0
 
virtual bool addChannel (const std::string &channelName, int force, bool active, const std::vector< std::string > &entities)=0
 
virtual void updateAvailableChannels ()=0
 
virtual void clearChannels ()=0
 
virtual void setEntityMarkingText (const std::string &text)=0
 
virtual void setEntityForce (int force)=0
 
virtual void setEntityRole (const std::string &role)=0
 
virtual void updateUsername ()=0
 
virtual void displayReceivedMessage (const std::string &username, int force, const std::string &channel, const std::string &message)=0
 
virtual void open ()=0
 
virtual void close ()=0
 
virtual void openOrFocus ()=0
 
virtual void togglePinChat ()=0
 
virtual bool isVisible () const =0
 
virtual bool isFullChatVisible () const =0
 
virtual bool isShowingAllowed () const =0
 
virtual void setShowingAllowed (bool canShow)=0
 
virtual void updatePositionFromState (const std::string &state)=0
 

Constructor & Destructor Documentation

◆ ~DtChatWindowInterface()

virtual makVre::DtChatWindowInterface::~DtChatWindowInterface ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ send()

virtual void makVre::DtChatWindowInterface::send ( const std::string & message)
pure virtual

Sends a message or slash command to the chat system.

Parameters
messageText 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
messageText message to send
channelTarget channel name
forceForce 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
messageText 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
channelNameName of the channel to check
forceForce 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
channelNameName of the channel
forceForce identifier associated with the channel
activeWhether the channel starts active
entitiesList 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

Refreshes the active-channel list based on current entity state.

Implemented in makVre::DtVreChatWindow.

◆ clearChannels()

virtual void makVre::DtChatWindowInterface::clearChannels ( )
pure virtual

Removes all channels from the chat system.

Implemented in makVre::DtVreChatWindow.

◆ setEntityMarkingText()

virtual void makVre::DtChatWindowInterface::setEntityMarkingText ( const std::string & text)
pure virtual

Sets the entity marking text used for username generation.

Parameters
textMarking (call sign) of the local entity

Implemented in makVre::DtVreChatWindow.

◆ setEntityForce()

virtual void makVre::DtChatWindowInterface::setEntityForce ( int force)
pure virtual

Sets the entity force identifier used for channel filtering.

Parameters
forceForce identifier

Implemented in makVre::DtVreChatWindow.

◆ setEntityRole()

virtual void makVre::DtChatWindowInterface::setEntityRole ( const std::string & role)
pure virtual

Sets the entity role used for username generation.

Parameters
roleRole description string

Implemented in makVre::DtVreChatWindow.

◆ updateUsername()

virtual void makVre::DtChatWindowInterface::updateUsername ( )
pure virtual

Regenerates the displayed username from current settings.

Implemented in makVre::DtVreChatWindow.

◆ 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
usernameSender's username
forceForce identifier of the sender
channelChannel the message arrived on
messageRaw message text (will be HTML-converted by the implementation)

Implemented in makVre::DtVreChatWindow.

◆ open()

virtual void makVre::DtChatWindowInterface::open ( )
pure virtual

Opens the chat window.

Implemented in makVre::DtVreChatWindow.

◆ close()

virtual void makVre::DtChatWindowInterface::close ( )
pure virtual

Closes the chat window.

Implemented in makVre::DtVreChatWindow.

◆ openOrFocus()

virtual void makVre::DtChatWindowInterface::openOrFocus ( )
pure virtual

Opens the window or gives focus to the input if already open.

Implemented in makVre::DtVreChatWindow.

◆ togglePinChat()

virtual void makVre::DtChatWindowInterface::togglePinChat ( )
pure virtual

Toggles the pinned (always-visible) state of the chat window.

Implemented in makVre::DtVreChatWindow.

◆ isVisible()

virtual bool makVre::DtChatWindowInterface::isVisible ( ) const
pure virtual

Returns whether the chat window root item is visible.

Implemented in makVre::DtVreChatWindow.

◆ 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

Returns whether the chat window is permitted to be shown.

Implemented in makVre::DtVreChatWindow.

◆ setShowingAllowed()

virtual void makVre::DtChatWindowInterface::setShowingAllowed ( bool canShow)
pure virtual

Sets whether the chat window is permitted to be shown.

Parameters
canShowTrue 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
stateApplication state identifier string

Implemented in makVre::DtVreChatWindow.


The documentation for this class was generated from the following file: