2012-01-07 14:52:58 -05:00
|
|
|
#pragma once
|
|
|
|
|
2012-01-07 16:01:43 -05:00
|
|
|
#include "ui_ChatLobbyWidget.h"
|
2012-01-07 14:52:58 -05:00
|
|
|
#include "RsAutoUpdatePage.h"
|
|
|
|
|
2012-01-11 19:13:25 -05:00
|
|
|
class RSTreeWidgetItemCompareRole;
|
|
|
|
|
|
|
|
class ChatLobbyWidget : public RsAutoUpdatePage, Ui::ChatLobbyWidget
|
2012-01-07 14:52:58 -05:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2012-01-11 19:13:25 -05:00
|
|
|
public:
|
|
|
|
/** Default constructor */
|
|
|
|
ChatLobbyWidget(QWidget *parent = 0, Qt::WFlags flags = 0);
|
2012-01-07 14:52:58 -05:00
|
|
|
|
2012-01-11 19:13:25 -05:00
|
|
|
/** Default destructor */
|
|
|
|
~ChatLobbyWidget();
|
2012-01-07 14:52:58 -05:00
|
|
|
|
2012-01-11 19:13:25 -05:00
|
|
|
virtual void updateDisplay();
|
2012-01-07 14:52:58 -05:00
|
|
|
|
2012-01-11 19:13:25 -05: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;
|
|
|
|
};
|