File indexing completed on 2025-03-09 04:54:44

0001 /*
0002     SPDX-License-Identifier: BSL-1.0
0003 */
0004 
0005 #pragma once
0006 
0007 #include "messageviewer_export.h"
0008 
0009 #include <QWidget>
0010 
0011 namespace MessageViewer
0012 {
0013 class InvitationSettingsPrivate;
0014 /**
0015  * @brief The InvitationSettings class
0016  */
0017 class MESSAGEVIEWER_EXPORT InvitationSettings : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit InvitationSettings(QWidget *parent = nullptr);
0022     ~InvitationSettings() override;
0023     void save();
0024     [[nodiscard]] QString helpAnchor() const;
0025     void doLoadFromGlobalSettings();
0026     void doResetToDefaultsOther();
0027 
0028 Q_SIGNALS:
0029     void changed();
0030 
0031 private:
0032     MESSAGEVIEWER_NO_EXPORT void slotLegacyBodyInvitesToggled(bool on);
0033     std::unique_ptr<InvitationSettingsPrivate> const d;
0034 };
0035 }