independentchatwindow.h 659 B

12345678910111213141516171819202122232425262728
  1. #ifndef INDEPENDENTCHATWINDOW_H
  2. #define INDEPENDENTCHATWINDOW_H
  3. #include "widgets/framelessbase.h"
  4. #include "network/websocketclient.h"
  5. class ChatWindow;
  6. class QVBoxLayout;
  7. class IndependentChatWindow : public TWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit IndependentChatWindow(WebSocketClient *webSocketClient, QWidget *parent = nullptr);
  12. ~IndependentChatWindow() override;
  13. void initWebsocket(const QString &roomId);
  14. ChatWindow* getChatWindow() const { return m_chatWindow; }
  15. private:
  16. void setupUI();
  17. void setupTitleBar();
  18. ChatWindow *m_chatWindow;
  19. WebSocketClient *m_webSocketClient;
  20. };
  21. #endif // INDEPENDENTCHATWINDOW_H