File indexing completed on 2024-04-21 05:51:30
0001 /* 0002 * SPDX-FileCopyrightText: 2002 Waldo Bastian <bastian@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only 0005 **/ 0006 0007 #ifndef ZMODEM_DIALOG_H 0008 #define ZMODEM_DIALOG_H 0009 0010 #include <QDialog> 0011 0012 #include "konsoleprivate_export.h" 0013 0014 class KTextEdit; 0015 class QDialogButtonBox; 0016 namespace Konsole 0017 { 0018 class KONSOLEPRIVATE_EXPORT ZModemDialog : public QDialog 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 ZModemDialog(QWidget *parent, bool modal, const QString &caption); 0024 0025 /** 0026 * Adds a line of text to the progress window 0027 */ 0028 void addText(const QString &); 0029 0030 /** 0031 * Adds a line of text without a new line to the progress window 0032 */ 0033 void addProgressText(const QString &); 0034 0035 /** 0036 * To indicate the process is finished. 0037 */ 0038 void transferDone(); 0039 0040 Q_SIGNALS: 0041 void zmodemCancel(); 0042 0043 private Q_SLOTS: 0044 void slotClose(); 0045 void slotCancel(); 0046 0047 private: 0048 Q_DISABLE_COPY(ZModemDialog) 0049 0050 void delayedDestruct(); 0051 KTextEdit *_textEdit; 0052 QDialogButtonBox *mButtonBox; 0053 }; 0054 } 0055 0056 #endif