mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-07 20:53:24 +00:00
8b8b39ec0e
The user would be notified if the message contains "@" followed by the user's nickname or forum username. An alert would be shown, and the icon and message in the status bar would be changed. All notification is only shown if the chat window currently does not have focus. Also added a connected_notification icon for showing in the status bar.
38 lines
854 B
C++
38 lines
854 B
C++
// 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;
|
|
}
|
|
|
|
class ClientRoomWindow : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ClientRoomWindow(QWidget* parent);
|
|
~ClientRoomWindow();
|
|
|
|
void RetranslateUi();
|
|
void SetModPerms(bool is_mod);
|
|
|
|
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();
|
|
|
|
QStandardItemModel* player_list;
|
|
std::unique_ptr<Ui::ClientRoom> ui;
|
|
};
|