File indexing completed on 2024-12-08 04:34:35
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqolawidgets_private_export.h" 0010 #include <QWidget> 0011 0012 namespace TextEditTextToSpeech 0013 { 0014 class TextToSpeechContainerWidget; 0015 } 0016 0017 class QLineEdit; 0018 class ServerErrorInfoHistoryFilterProxyModel; 0019 class ServerErrorInfoMessageHistoryListView; 0020 class ServersComboBox; 0021 class LIBRUQOLAWIDGETS_TESTS_EXPORT ServerErrorInfoMessageHistoryWidget : public QWidget 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit ServerErrorInfoMessageHistoryWidget(QWidget *parent = nullptr); 0026 ~ServerErrorInfoMessageHistoryWidget() override; 0027 0028 void addServerList(const QStringList &serverNames); 0029 0030 private: 0031 LIBRUQOLAWIDGETS_NO_EXPORT void slotTextChanged(const QString &str); 0032 LIBRUQOLAWIDGETS_NO_EXPORT void slotFilterAccount(const QString &accountName); 0033 0034 QLineEdit *const mSearchLineEdit; 0035 ServerErrorInfoMessageHistoryListView *const mListServerInfosListView; 0036 TextEditTextToSpeech::TextToSpeechContainerWidget *const mTextToSpeechWidget = nullptr; 0037 ServerErrorInfoHistoryFilterProxyModel *const mServerErrorInfoHistoryFilterProxyModel; 0038 ServersComboBox *const mServersComboBox; 0039 };