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

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QComboBox>
0010 
0011 #include "libruqolawidgets_private_export.h"
0012 class SystemMessagesModel;
0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT SystemMessagesComboBox : public QComboBox
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit SystemMessagesComboBox(QWidget *parent = nullptr);
0018     ~SystemMessagesComboBox() override;
0019     void setMessagesSystem(const QStringList &lst);
0020     [[nodiscard]] QStringList systemMessagesSelected() const;
0021 
0022 Q_SIGNALS:
0023     void settingsChanged();
0024 
0025 private:
0026     SystemMessagesModel *const mSystemMessagesModel;
0027 };