mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-07-04 13:57:51 -05:00
yuzu: Add ui files for multiplayer rooms
This commit is contained in:
39
src/yuzu/multiplayer/client_room.h
Normal file
39
src/yuzu/multiplayer/client_room.h
Normal file
@ -0,0 +1,39 @@
|
||||
// Copyright 2017 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "yuzu/multiplayer/chat_room.h"
|
||||
|
||||
namespace Ui {
|
||||
class ClientRoom;
|
||||
}
|
||||
|
||||
class ClientRoomWindow : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ClientRoomWindow(QWidget* parent);
|
||||
~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;
|
||||
};
|
Reference in New Issue
Block a user