File indexing completed on 2024-12-01 04:36:54

0001 /*
0002    SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "libruqolawidgets_export.h"
0009 #include <QDialog>
0010 class NotificationHistoryWidget;
0011 class LIBRUQOLAWIDGETS_EXPORT NotificationHistoryDialog : public QDialog
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit NotificationHistoryDialog(QWidget *parent = nullptr);
0016     ~NotificationHistoryDialog() override;
0017 
0018     void addServerList(const QStringList &serverNames);
0019 
0020 Q_SIGNALS:
0021     void showNotifyMessage(const QString &accountName, const QString &messageId, const QString &roomId);
0022 
0023 private:
0024     LIBRUQOLAWIDGETS_NO_EXPORT void readConfig();
0025     LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig();
0026     NotificationHistoryWidget *const mNotificationHistoryWidget;
0027 };