chatcommand_logout.h 716 B

12345678910111213141516171819202122
  1. #ifndef __CHATCOMMAND_LOGOUT_H
  2. #define __CHATCOMMAND_LOGOUT_H
  3. #include "chatcommand.h"
  4. #include "message.h"
  5. #include "chatclient.h"
  6. class chatcommand_logout:chatcommand
  7. {
  8. public:
  9. static bool processmessage(char first_letter,message *received_message,chatclient *client);
  10. // Remove this user from every chatroom.
  11. // Send a message to everyone in every chatroom that
  12. static void exit_all_chatrooms(int64_t messageid,chatclient *client, bool send_message);
  13. // Remove this user from this chatroom.
  14. // Send a message to everyone in the chatroom that this client logged out.
  15. static void exit_chatroom(int64_t messageid,chatclient *client,chatroom *room, bool send_message, bool remove_from_list);
  16. };
  17. #endif