2022-07-25 17:18:30 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2017 Citra Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-12-25 20:27:52 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "yuzu/multiplayer/chat_room.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ClientRoom;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ClientRoomWindow : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-22 16:31:13 +02:00
|
|
|
explicit ClientRoomWindow(QWidget* parent, Network::RoomNetwork& room_network_);
|
2021-12-25 20:27:52 +01:00
|
|
|
~ClientRoomWindow();
|
|
|
|
|
|
|
|
void RetranslateUi();
|
|
|
|
void UpdateIconDisplay();
|
|
|
|
|
|
|
|
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&);
|
|
|
|
void ShowNotification();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Disconnect();
|
|
|
|
void UpdateView();
|
|
|
|
void SetModPerms(bool is_mod);
|
|
|
|
|
|
|
|
QStandardItemModel* player_list;
|
|
|
|
std::unique_ptr<Ui::ClientRoom> ui;
|
2022-07-22 16:31:13 +02:00
|
|
|
Network::RoomNetwork& room_network;
|
2021-12-25 20:27:52 +01:00
|
|
|
};
|