aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/downloaditemform.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-15 15:39:42 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-15 15:39:42 +0100
commit8c25c63acf839b09e10d398cfa44d5a45d3ba7c0 (patch)
tree22fa7a27414d12910c1d360b89aac1221f89ab25 /src/webengine/downloaditemform.h
parentUpdated firejail profile (diff)
downloadsmolbote-8c25c63acf839b09e10d398cfa44d5a45d3ba7c0.tar.xz
Download manager
Diffstat (limited to 'src/webengine/downloaditemform.h')
-rw-r--r--src/webengine/downloaditemform.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/webengine/downloaditemform.h b/src/webengine/downloaditemform.h
new file mode 100644
index 0000000..996b876
--- /dev/null
+++ b/src/webengine/downloaditemform.h
@@ -0,0 +1,28 @@
+#ifndef DOWNLOADITEMFORM_H
+#define DOWNLOADITEMFORM_H
+
+#include <QWidget>
+#include <QWebEngineDownloadItem>
+
+namespace Ui {
+class DownloadItemForm;
+}
+
+class DownloadItemForm : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit DownloadItemForm(QWebEngineDownloadItem *item, QWidget *parent = 0);
+ ~DownloadItemForm();
+
+private slots:
+ void updateState(QWebEngineDownloadItem::DownloadState state);
+ void updateProgress(qint64 value, qint64 total);
+ void updateFinished();
+
+private:
+ Ui::DownloadItemForm *ui;
+};
+
+#endif // DOWNLOADITEMFORM_H