File indexing completed on 2024-03-24 05:43:54
0001 /* 0002 SPDX-FileCopyrightText: 2020 Nikolai Krasheninnikov <nkrasheninnikov@yandex.ru> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SVNCLEANUPDIALOG_H 0008 #define SVNCLEANUPDIALOG_H 0009 0010 #include <QDialog> 0011 0012 #include "ui_svncleanupdialog.h" 0013 0014 /** 0015 * \brief Dialog for SVN cleanup operation. 0016 * 0017 * \note Dialog sets up a Qt::WA_DeleteOnClose attribute so it's delete itself on close. 0018 */ 0019 class SvnCleanupDialog : public QDialog { 0020 Q_OBJECT 0021 public: 0022 /** 0023 * \param[in] workingDir Directory to call 'svn cleanup' on. 0024 * \param[in,out] parent Parent widget. 0025 */ 0026 SvnCleanupDialog(const QString& workingDir, QWidget *parent = nullptr); 0027 virtual ~SvnCleanupDialog() override; 0028 0029 public Q_SLOTS: 0030 void on_lineEditDirectory_textChanged(const QString &text); 0031 void on_buttonOk_clicked(); 0032 0033 Q_SIGNALS: 0034 /** 0035 * Is emitted if an error occuers with a message \a msg. 0036 */ 0037 void errorMessage(const QString& msg); 0038 0039 /** 0040 * Is emitted for successful operation with a message \a msg. 0041 */ 0042 void operationCompletedMessage(const QString& msg); 0043 0044 private: 0045 Ui::SvnCleanupDialog m_ui; 0046 }; 0047 0048 #endif // SVNCLEANUPDIALOG_H