]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.h
Enable downloading of files that require login cookies. https://redmine.stoutner...
[PrivacyBrowserPC.git] / src / widgets / TabWidget.h
index 246daa41cf4860c9c080426309a815e7de3c69f6..6130fc3ee75fc27b987c26c1e726a4933e159b7d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
  *
@@ -22,6 +22,7 @@
 
 // Application headers.
 #include "PrivacyWebEngineView.h"
+#include "helpers/UserAgentHelper.h"
 
 // KDE Framework headers.
 #include <KLineEdit>
@@ -118,9 +119,9 @@ private Q_SLOTS:
     void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest) const;
     void pageLinkHovered(const QString &linkUrl) const;
     void printWebpage(QPrinter *printerPointer) const;
-    void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer) const;
-    void showSaveFilePickerDialog(QUrl &downloadUrl, QString &suggestedFileName);
+    void showSaveDialog(QWebEngineDownloadItem *downloadItemPointer);
     void updateUiWithTabSettings();
+    void useNativeDownloader(QUrl &downloadUrl, QString &suggestedFileName);
 
 private:
     // The private variables.
@@ -134,6 +135,7 @@ private:
     QIcon defaultTabIcon = QIcon::fromTheme(QStringLiteral("globe"));
     QString searchEngineUrl;
     QTabWidget *tabWidgetPointer;
+    UserAgentHelper *userAgentHelperPointer;
     bool wipingCurrentFindTextSelection = false;
 
     // The private functions.