28 #ifndef dooble_downloads_item_h
29 #define dooble_downloads_item_h
32 #include <QPropertyAnimation>
38 #include "ui_dooble_downloads_item.h"
40 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
41 class QWebEngineDownloadItem;
43 class QWebEngineDownloadRequest;
45 class QWebEngineProfile;
54 #
if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
55 QWebEngineDownloadItem *download,
57 QWebEngineDownloadRequest *download,
59 const bool is_private,
64 const QString &file_name,
65 const QString &information,
70 QPointer<QWebEngineProfile> profile(
void)
const;
71 QString download_path(
void)
const;
73 bool is_finished(
void)
const;
74 qintptr oid(
void)
const;
78 #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
79 QPointer<QWebEngineDownloadItem> m_download;
81 QPointer<QWebEngineDownloadRequest> m_download;
83 QPointer<QWebEngineProfile> m_profile;
84 QPropertyAnimation m_progress_bar_animation;
85 QString m_download_path;
88 QTimer m_stalled_timer;
90 Ui_dooble_downloads_item m_ui;
92 qint64 m_last_bytes_received;
95 void prepare_icons(
void);
97 void record_information(
void);
100 void slot_cancel(
void);
101 void slot_download_progress(qint64 bytes_received, qint64 bytes_total);
102 void slot_download_progress(
void);
103 void slot_finished(
void);
104 void slot_pause_or_resume(
void);
105 void slot_reload(
void);
106 void slot_settings_applied(
void);
107 void slot_stalled(
void);
111 void reload(
const QString &file_name,
const QUrl &url);
Definition: dooble_downloads_item.h:48