]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.h
Add option to auto update the download directory. https://redmine.stoutner.com/issue...
[PrivacyBrowserPC.git] / src / widgets / TabWidget.h
index 5b9f2f9fe9de7d4a8f311ac5a282ce2cd7014a27..06676d642e14cbe91b871323bf3dc25f59c13635 100644 (file)
@@ -100,7 +100,7 @@ signals:
 public Q_SLOTS:
     // The public slots.
     void addCookieToStore(QNetworkCookie cookie, QWebEngineCookieStore *webEngineCookieStorePointer = nullptr) const;
-    PrivacyWebEngineView* addTab(const bool removeUrlLineEditFocus = false, const bool backgroundTab = false, const QString urlString = nullptr);
+    PrivacyWebEngineView* addTab(const bool removeUrlLineEditFocus = false, const bool adjacent = false, const bool backgroundTab = false, const QString urlString = nullptr);
     void applyApplicationSettings();
     void applyDomainSettingsAndReload();
     void applyOnTheFlySearchEngine(QAction *searchEngineActionPointer);
@@ -119,6 +119,7 @@ public Q_SLOTS:
     void refresh() const;
     void reloadAndBypassCache() const;
     void saveArchive();
+    void stop() const;
 
 private Q_SLOTS:
     // The private slots.
@@ -135,6 +136,9 @@ private Q_SLOTS:
     void useNativeKdeDownloader(QUrl &downloadUrl, QString &suggestedFileName);
 
 private:
+    // The private functions.
+    void updateDownloadDirectory(QString newDownloadDirectory) const;
+
     // The private variables.
     PrivacyWebEngineView *currentPrivacyWebEngineViewPointer;
     QWebEngineCookieStore *currentWebEngineCookieStorePointer;