File indexing completed on 2024-11-24 04:44:06
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include <QDialog> 0011 #include <QTextBrowser> 0012 class ImapResourceBase; 0013 0014 class ServerInfoTextBrowser : public QTextBrowser 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit ServerInfoTextBrowser(QWidget *parent = nullptr); 0019 ~ServerInfoTextBrowser() override; 0020 0021 protected: 0022 void paintEvent(QPaintEvent *event) override; 0023 }; 0024 0025 class ServerInfoDialog : public QDialog 0026 { 0027 Q_OBJECT 0028 public: 0029 explicit ServerInfoDialog(ImapResourceBase *parentResource, QWidget *parent); 0030 ~ServerInfoDialog() override; 0031 0032 private: 0033 void writeConfig(); 0034 void readConfig(); 0035 ServerInfoTextBrowser *const mTextBrowser; 0036 };