X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fdialogs%2FSaveDialog.h;fp=src%2Fdialogs%2FSaveDialog.h;h=36354c190a4c84b4ea135629ddc76744d49d4bb2;hp=0000000000000000000000000000000000000000;hb=1ce11bc5f6630bf81aa67bdaca411fbea93dc017;hpb=273588ac3f6077b62c1fb2b55b9cdc6b5e200fad diff --git a/src/dialogs/SaveDialog.h b/src/dialogs/SaveDialog.h new file mode 100644 index 0000000..36354c1 --- /dev/null +++ b/src/dialogs/SaveDialog.h @@ -0,0 +1,50 @@ +/* + * Copyright © 2022 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Privacy Browser PC is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Privacy Browser PC. If not, see . + */ + +#ifndef SAVEDIALOG_H +#define SAVEDIALOG_H + +// Qt toolkit headers. +#include +#include +#include + +class SaveDialog : public QDialog +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The primary constructor. + explicit SaveDialog(QWebEngineDownloadItem *downloadItemPointer); + +signals: + // The signals. + void showSaveFilePickerDialog(QUrl &downloadUrl, QString &suggestedFileName); + +private Q_SLOTS: + // The private slots. + void showFileDialog(); + +private: + // The private variables. + QUrl downloadUrl; + QString suggestedFileName; +}; +#endif