citra/src/citra_qt/multiplayer/client_room.h

40 lines
884 B
C++
Raw Normal View History

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"
namespace Ui {
class ClientRoom;
}
2018-01-19 14:42:21 +01:00
class ClientRoomWindow : public QDialog {
Q_OBJECT
public:
explicit ClientRoomWindow(QWidget* parent);
~ClientRoomWindow();
2018-01-19 14:42:21 +01:00
void RetranslateUi();
void UpdateIconDisplay();
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&);
void ShowNotification();
2018-01-19 14:42:21 +01:00
private:
void Disconnect();
void UpdateView();
void SetModPerms(bool is_mod);
2018-01-19 14:42:21 +01:00
QStandardItemModel* player_list;
std::unique_ptr<Ui::ClientRoom> ui;
2018-01-19 14:42:21 +01:00
};