227 virtual void sendChatMessage(
const QString& message,
const QString& channel,
const int force);
245 Q_INVOKABLE
virtual void send(
const QString& message);
Provides attribute handling system for hierarchical data storage and manipulation.
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
Data model for the chat window contents.
Definition vreChatWindowModel.h:128
void setCurrentUsername(QString username)
Sets the current username.
std::vector< ChannelInfo > myChannels
Definition vreChatQML.h:326
void setFullChatVisible(bool visible)
Sets the full chat window visibility state.
QString myEntityRole
Definition vreChatQML.h:320
DtVreChatModel * chatModel
Model containing chat messages for display.
Definition vreChatQML.h:102
virtual Q_INVOKABLE void send(const QString &message)
Processes and sends a message or command.
void setChat(DtVreChatModel *model)
Sets the chat message model.
bool myUsingCustomUsername
Definition vreChatQML.h:318
void currentUsernameChanged(QString username)
Signal emitted when the username changes.
DtFilename myDefaultChatConfigFile
Definition vreChatQML.h:325
virtual void setUsingCustomUsername(bool usingCustom)
Sets whether to use a custom username instead of entity name.
Definition vreChatQML.h:176
QString currentUsername
Current username for the chat system.
Definition vreChatQML.h:99
virtual void sendSlashCommand(const QString &message)
Processes a slash command.
virtual void sendToSystemChannel(const std::string &message)
Sends a message to the system channel.
void setEntityRole(QString val)
Sets the entity role text for username generation.
Definition vreChatQML.h:204
bool myPinChat
Definition vreChatQML.h:330
DtPlayerStationApp & myApp
Definition vreChatQML.h:339
DtVreChatQML(DtPlayerStationApp &app, QObject *parent=nullptr)
Constructor.
virtual Q_INVOKABLE QVariant getChannelInfo(int idx)
Gets information about a specific channel.
int myCurrentChannelIdx
Definition vreChatQML.h:327
virtual void updateUsername()
Updates the username based on current settings.
virtual const std::vector< ChannelInfo > & getChannels() const
Gets the list of all available channels.
Definition vreChatQML.h:163
void chatChanged()
Signal emitted when the chat model changes.
QString entityRole() const
Gets the entity role text for username generation.
Definition vreChatQML.h:200
int myEntityForce
Definition vreChatQML.h:321
virtual bool sendChannelCommand(const QString &channelCommand)
Processes a channel switching command.
virtual void switchToFirstAvailableChannel()
Switches to the first available channel.
virtual bool isChannelActive(const QString &channelName, int force)
Checks if a channel is currently active.
virtual void clearChannels()
Removes all channels from the chat system.
virtual QString entityMarkingText() const
Gets the entity marking text for username generation.
Definition vreChatQML.h:184
virtual Q_INVOKABLE void cycleChannels(bool direction)
Cycles through available channels.
void pinChatChanged(bool pinned)
Signal emitted when the pinned state changes.
virtual int entityForce() const
Gets the entity force identifier for username generation.
Definition vreChatQML.h:192
virtual ~DtVreChatQML() override
Virtual destructor.
virtual void updateAvailableChannels()
Updates the list of available channels in the UI.
virtual Q_INVOKABLE void togglePinChat()
Toggles the pinned state of the chat window.
bool pinChat
Flag indicating if the chat window is pinned (always visible)
Definition vreChatQML.h:93
QScopedPointer< DtVreChatModel > myChatModel
Definition vreChatQML.h:336
virtual void setEntityForce(int val)
Sets the entity force identifier for username generation.
Definition vreChatQML.h:196
void fullChatVisibleChanged(bool visible)
Signal emitted when the full chat visibility changes.
DtFilename myCurrentChatConfigFile
Definition vreChatQML.h:324
int currentChannelIdx
Index of the currently active chat channel.
Definition vreChatQML.h:90
QString myCurrentUsername
Definition vreChatQML.h:317
virtual bool isUsingCustomUsername() const
Checks if a custom username is being used.
Definition vreChatQML.h:180
bool isFullChatVisible() const
Gets whether the full chat window is visible.
Definition vreChatQML.h:271
QString myEntityMarkingText
Definition vreChatQML.h:319
virtual QString getCurrentUsername()
Gets the current username.
void currentChannelIdxChanged(int channelIdx)
Signal emitted when the active channel changes.
virtual bool addChannel(const makVre::ChannelInfo &channelInfo, bool updateAvailableChannels=false)
Adds a channel to the available channels list.
bool myFullChatVisible
Definition vreChatQML.h:333
bool fullChatVisible
Flag indicating if the full chat window is currently visible.
Definition vreChatQML.h:96
virtual DtVreChatModel * getChat()
Gets the chat message model.
virtual void sendChatMessage(const QString &message, const QString &channel, const int force)
Sends a regular chat message to a specific channel.
static std::string convertTextToHTML(const std::string &inputText)
Converts plain text to HTML format for QML display.
virtual void setEntityMarkingText(QString val)
Sets the entity marking text for username generation.
Definition vreChatQML.h:188
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
Q_DECLARE_METATYPE(makVre::ChannelInfo)
Structure defining a chat communication channel.
Definition vreChatQML.h:34
int force
Force identifier property exposed to QML.
Definition vreChatQML.h:40
QString channel
Channel name property exposed to QML.
Definition vreChatQML.h:37
ChannelInfo()=default
Default constructor.
QStringList entities
List of entities in this channel property exposed to QML.
Definition vreChatQML.h:46
bool myActive
Flag indicating if this channel is currently active.
Definition vreChatQML.h:69
ChannelInfo(QString ch, int f, bool a)
Constructor with parameters.
Definition vreChatQML.h:56
bool active
Channel activation status property exposed to QML.
Definition vreChatQML.h:43
QString myChannelName
Name of the communication channel.
Definition vreChatQML.h:62
int myForce
Force identifier associated with this channel (Typically: 1=friendly, 2=enemy, 3=neutral,...
Definition vreChatQML.h:66
QStringList myEntities
List of entities (participants) in this channel.
Definition vreChatQML.h:72
Defines the data model for the chat window in VR-Engage.
Defines the base class for all VREngage messages.