diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-07-02 21:26:23 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-07-02 21:26:23 +0400 |
commit | f9068cb7b23143a319e89f59f0a262e8a8f1432f (patch) | |
tree | b00a8782e794d810acb5473b9e6db09da18190dd /src/Message.h | |
parent | 3aeb0729830e34a153c313671bc7140c1e818330 (diff) |
TextMessage patch by Mikkel Krautz
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@523 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'src/Message.h')
-rw-r--r-- | src/Message.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Message.h b/src/Message.h index d9791aa90..4c8bf24ff 100644 --- a/src/Message.h +++ b/src/Message.h @@ -31,7 +31,7 @@ #ifndef _MESSAGE_H #define _MESSAGE_H -#define MESSAGE_STREAM_VERSION 8 +#define MESSAGE_STREAM_VERSION 9 #include "ACL.h" @@ -43,7 +43,7 @@ class Message { virtual void saveStream(PacketDataStream &) const; virtual void restoreStream(PacketDataStream &); public: - enum MessageType { Speex, MultiSpeex, ServerAuthenticate, ServerReject, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, PermissionDenied, EditACL, QueryUsers, Ping}; + enum MessageType { Speex, MultiSpeex, ServerAuthenticate, ServerReject, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, PermissionDenied, EditACL, QueryUsers, Ping, TextMessage }; unsigned short sPlayerId; Message(); @@ -294,6 +294,18 @@ class MessageServerBanList : public Message { void process(Connection *); }; +class MessageTextMessage : public Message { + protected: + void saveStream(PacketDataStream &) const; + void restoreStream(PacketDataStream &); + public: + short sVictim; + QString qsMessage; + MessageTextMessage(); + Message::MessageType messageType() const { return TextMessage; }; + void process(Connection *); +}; + class MessagePermissionDenied : public Message { protected: void saveStream(PacketDataStream &) const; |