File indexing completed on 2024-05-12 05:12:44
0001 /* 0002 This file is part of Akonadi. 0003 0004 SPDX-FileCopyrightText: 2006 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QWidget> 0012 0013 class DebugModel; 0014 class DebugFilterModel; 0015 class QAbstractItemModel; 0016 class QTableView; 0017 0018 namespace KPIM 0019 { 0020 class KCheckComboBox; 0021 } 0022 0023 class ConnectionPage : public QWidget 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit ConnectionPage(const QString &identifier, QWidget *parent = nullptr); 0029 0030 void showAllConnections(bool); 0031 0032 QString toHtml() const; 0033 QString toHtmlFiltered() const; 0034 0035 public Q_SLOTS: 0036 void clear(); 0037 void clearFiltered(); 0038 0039 private: 0040 void connectionDataInput(const QString &, const QString &); 0041 void connectionDataOutput(const QString &, const QString &); 0042 QString toHtml(QAbstractItemModel *model) const; 0043 0044 DebugModel *mModel = nullptr; 0045 DebugFilterModel *mFilterModel = nullptr; 0046 QTableView *mDataView = nullptr; 0047 KPIM::KCheckComboBox *mSenderFilter = nullptr; 0048 const QString mIdentifier; 0049 bool mShowAllConnections = false; 0050 };