RetroShare/retroshare-gui/src/gui/ChatLobbyWidget.h
2012-01-18 20:02:19 +00:00

36 lines
854 B
C++

#pragma once
#include "ui_ChatLobbyWidget.h"
#include "RsAutoUpdatePage.h"
class RSTreeWidgetItemCompareRole;
class ChatLobbyWidget : public RsAutoUpdatePage, Ui::ChatLobbyWidget
{
Q_OBJECT
public:
/** Default constructor */
ChatLobbyWidget(QWidget *parent = 0, Qt::WFlags flags = 0);
/** Default destructor */
~ChatLobbyWidget();
virtual void updateDisplay();
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;
};