/*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022, 2024 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
*
public:
// The primary constructor.
- explicit AddOrEditCookieDialog(const int &dialogType, const QNetworkCookie *cookiePointer = nullptr);
+ explicit AddOrEditCookieDialog(QWidget *parentWidgetPointer, const int dialogType, const QNetworkCookie *cookiePointer = nullptr, const bool isDurable = false);
// The public static constants.
static const int AddCookie;
signals:
// The signals.
- void addCookie(const QNetworkCookie &cookie) const;
+ void addCookie(const QNetworkCookie &cookie, const bool &isDurable) const;
void deleteCookie(const QNetworkCookie &cookie) const;
private Q_SLOTS:
private:
// The private widgets.
QLineEdit *domainLineEditPointer;
+ QCheckBox *durableCheckBoxPointer;
QCheckBox *expirationCheckBoxPointer;
QDateTimeEdit *expirationDateTimeEditPointer;
QCheckBox *httpOnlyCheckBoxPointer;
QLineEdit *valueLineEditPointer;
// The private variables.
- QNetworkCookie oldCookie;
bool isEditDialog;
+ QNetworkCookie originalCookie;
+ bool originalIsDurable;
};
#endif