2012-01-07 19:52:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
2013-02-22 21:42:27 +00:00
|
|
|
#include <QTreeWidget>
|
2012-01-07 21:01:43 +00:00
|
|
|
#include "ui_ChatLobbyWidget.h"
|
2012-01-07 19:52:58 +00:00
|
|
|
#include "RsAutoUpdatePage.h"
|
|
|
|
|
2012-01-12 00:13:25 +00:00
|
|
|
class RSTreeWidgetItemCompareRole;
|
2013-02-22 21:42:27 +00:00
|
|
|
class ChatTabWidget ;
|
2012-01-12 00:13:25 +00:00
|
|
|
|
|
|
|
class ChatLobbyWidget : public RsAutoUpdatePage, Ui::ChatLobbyWidget
|
2012-01-07 19:52:58 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2012-01-12 00:13:25 +00:00
|
|
|
public:
|
|
|
|
/** Default constructor */
|
|
|
|
ChatLobbyWidget(QWidget *parent = 0, Qt::WFlags flags = 0);
|
2012-01-07 19:52:58 +00:00
|
|
|
|
2012-01-12 00:13:25 +00:00
|
|
|
/** Default destructor */
|
|
|
|
~ChatLobbyWidget();
|
2012-01-07 19:52:58 +00:00
|
|
|
|
2012-01-12 00:13:25 +00:00
|
|
|
virtual void updateDisplay();
|
2012-01-07 19:52:58 +00:00
|
|
|
|
2013-02-22 21:42:27 +00:00
|
|
|
static ChatTabWidget *getTabWidget() ;
|
2012-01-12 00:13:25 +00:00
|
|
|
protected slots:
|
|
|
|
void lobbyChanged();
|
|
|
|
void lobbyTreeWidgetCostumPopupMenu();
|
|
|
|
void createChatLobby();
|
|
|
|
void subscribeItem();
|
|
|
|
void unsubscribeItem();
|
|
|
|
void itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
void displayChatLobbyEvent(qulonglong lobby_id, int event_type, const QString& nickname, const QString& str);
|
|
|
|
void readChatLobbyInvites();
|
|
|
|
|
|
|
|
private:
|
|
|
|
RSTreeWidgetItemCompareRole *compareRole;
|
|
|
|
QTreeWidgetItem *privateLobbyItem;
|
|
|
|
QTreeWidgetItem *publicLobbyItem;
|
2013-02-22 21:42:27 +00:00
|
|
|
|
|
|
|
ChatTabWidget *tabWidget ;
|
|
|
|
QTreeWidget *lobbyTreeWidget ;
|
2012-01-12 00:13:25 +00:00
|
|
|
};
|