2018-01-19 14:42:21 +01:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "citra_qt/multiplayer/chat_room.h"
|
2018-04-18 18:29:03 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ClientRoom;
|
|
|
|
}
|
2018-01-19 14:42:21 +01:00
|
|
|
|
|
|
|
class ClientRoomWindow : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ClientRoomWindow(QWidget* parent);
|
2018-04-18 18:29:03 +02:00
|
|
|
~ClientRoomWindow();
|
2018-01-19 14:42:21 +01:00
|
|
|
|
2018-10-09 17:08:33 +02:00
|
|
|
void RetranslateUi();
|
2019-01-16 15:01:21 +01:00
|
|
|
void UpdateIconDisplay();
|
2018-10-09 17:08:33 +02:00
|
|
|
|
2018-01-19 14:42:21 +01:00
|
|
|
public slots:
|
|
|
|
void OnRoomUpdate(const Network::RoomInformation&);
|
|
|
|
void OnStateChange(const Network::RoomMember::State&);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void RoomInformationChanged(const Network::RoomInformation&);
|
|
|
|
void StateChanged(const Network::RoomMember::State&);
|
2018-12-01 02:28:55 +01:00
|
|
|
void ShowNotification();
|
2018-01-19 14:42:21 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Disconnect();
|
|
|
|
void UpdateView();
|
2018-12-15 10:13:46 +01:00
|
|
|
void SetModPerms(bool is_mod);
|
2018-01-19 14:42:21 +01:00
|
|
|
|
|
|
|
QStandardItemModel* player_list;
|
2018-04-18 07:06:02 +02:00
|
|
|
std::unique_ptr<Ui::ClientRoom> ui;
|
2018-01-19 14:42:21 +01:00
|
|
|
};
|