diff options
Diffstat (limited to 'src/Message.h')
-rw-r--r-- | src/Message.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Message.h b/src/Message.h index aae09fc95..887634cea 100644 --- a/src/Message.h +++ b/src/Message.h @@ -31,7 +31,7 @@ #ifndef _MESSAGE_H #define _MESSAGE_H -#define MESSAGE_STREAM_VERSION 2 +#define MESSAGE_STREAM_VERSION 3 #include "ACL.h" @@ -43,7 +43,7 @@ class Message { virtual void saveStream(PacketDataStream &) const; virtual void restoreStream(PacketDataStream &); public: - enum MessageType { ServerReject, ServerAuthenticate, Speex, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, PermissionDenied, EditACL, QueryUsers, Ping, TextMessage, PlayerTexture, CryptSetup, CryptSync }; + enum MessageType { ServerReject, ServerAuthenticate, Speex, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, ChannelRename, PermissionDenied, EditACL, QueryUsers, Ping, TextMessage, PlayerTexture, CryptSetup, CryptSync }; unsigned int uiSession; Message(); @@ -277,6 +277,18 @@ class MessageChannelLink : public Message { }; }; +class MessageChannelRename : public Message { + protected: + void saveStream(PacketDataStream &) const; + void restoreStream(PacketDataStream &); + public: + int iId; + QString qsName; + Message::MessageType messageType() const { + return ChannelRename; + }; +}; + class MessageServerBanList : public Message { protected: void saveStream(PacketDataStream &) const; @@ -421,6 +433,7 @@ class MessageHandler { virtual void msgChannelRemove(Connection *, MessageChannelRemove *) = 0; virtual void msgChannelMove(Connection *, MessageChannelMove *) = 0; virtual void msgChannelLink(Connection *, MessageChannelLink *) = 0; + virtual void msgChannelRename(Connection *, MessageChannelRename *) = 0; virtual void msgServerBanList(Connection *, MessageServerBanList *) = 0; virtual void msgTextMessage(Connection *, MessageTextMessage *) = 0; virtual void msgPermissionDenied(Connection *, MessagePermissionDenied *) = 0; |