2020-11-17 02:19:17 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
|
|
#include "util/types.hpp"
|
|
|
|
|
#include "custom_dialog.h"
|
2025-02-11 03:00:37 +01:00
|
|
|
|
2025-04-08 19:46:57 +03:00
|
|
|
#include "rpcsx/fw/ps3/sceNp.h"
|
2020-11-17 02:19:17 +01:00
|
|
|
|
|
|
|
|
class sendmessage_dialog_frame : public QObject, public SendMessageDialogBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
sendmessage_dialog_frame() = default;
|
|
|
|
|
~sendmessage_dialog_frame();
|
2024-01-28 10:03:26 +01:00
|
|
|
error_code Exec(message_data& msg_data, std::set<std::string>& npids) override;
|
2025-02-05 20:28:08 +01:00
|
|
|
void callback_handler(rpcn::NotificationType ntype, const std::string& username, bool status) override;
|
2020-11-17 02:19:17 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void add_friend(QListWidget* list, const QString& name);
|
|
|
|
|
void remove_friend(QListWidget* list, const QString& name);
|
|
|
|
|
|
|
|
|
|
private:
|
2024-02-03 10:30:11 +01:00
|
|
|
custom_dialog* m_dialog = nullptr;
|
2020-11-17 02:19:17 +01:00
|
|
|
QListWidget* m_lst_friends = nullptr;
|
2023-02-13 02:33:06 -08:00
|
|
|
|
2020-11-17 02:19:17 +01:00
|
|
|
Q_SIGNALS:
|
|
|
|
|
void signal_add_friend(QString name);
|
|
|
|
|
void signal_remove_friend(QString name);
|
|
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void slot_add_friend(QString name);
|
|
|
|
|
void slot_remove_friend(QString name);
|
|
|
|
|
};
|