1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef WGETDIALOG_H
6#define WGETDIALOG_H
7
8#include "processdialog.h"
9
10class WGetDialog : public ProcessDialog
11{
12 Q_OBJECT
13public:
14 WGetDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
15 void setWorkingDirectory(const QString &workDir);
16 QString workDirectory() const;
17 void setWgetArguments(const QStringList &list);
18 QStringList wgetArguments() const;
19
20protected:
21 virtual void doShowStdErr(const QByteArray &array) override;
22 virtual void doShowStdOut(const QByteArray &array) override;
23 virtual void doFinished(int exitCode, QProcess::ExitStatus status) override;
24 virtual void showEvent(QShowEvent *event) override;
25};
26
27#endif // WGETDIALOG_H
28