VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
chatMessageEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
9 #include <vlpi/entityIdentifier.h>
10 
11 namespace makVrfEvents
12 {
15  {
16  public:
18  DtChatMessageEvent(const DtEntityIdentifier& sender,
19  const DtString& user, DtForceType force, const DtString& channel, const DtString& message);
21 
22  DtChatMessageEvent& operator=(const DtChatMessageEvent&);
23 
24  virtual const DtString& userName() const;
25  virtual void setUserName(const DtString& id);
26 
27  virtual const DtString& channel() const;
28  virtual void setChannel(const DtString& id);
29 
30  virtual const DtString& message() const;
31  virtual void setMessage(const DtString& id);
32 
33  virtual DtForceType forceType() const;
34  virtual void setForceType(const DtForceType& id);
35 
36  virtual const DtEntityIdentifier& sender() const;
37  virtual void setSender(const DtEntityIdentifier&);
38 
39  virtual void setReceiveTime(time_t t);
40  time_t receiveTime() const;
41 
42  virtual DtEvent* clone() const override { return new DtChatMessageEvent(*this); };
43 
44  protected:
45  time_t myReceiveTime;
46  DtEntityIdentifier mySender;
49  DtForceType myForceType;
51  };
52 }
DtString myChannel
Definition: chatMessageEvent.h:48
DtString myMessage
Definition: chatMessageEvent.h:50
Definition: event.h:13
DtString myUserName
Definition: chatMessageEvent.h:47
DtEntityIdentifier mySender
Definition: chatMessageEvent.h:46
When sending, force type of -1 means to send to all forces and an empty channel string means to send ...
Definition: chatMessageEvent.h:14
#define DT_DLL_vrfMsgTransport
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfCommunicationManagerDefines.h:26
DtForceType myForceType
Definition: chatMessageEvent.h:49

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)