X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fdatabases%2FCookiesDatabase.h;h=b81557b7e46b540841bddf9be1132b6187e20f97;hb=refs%2Fheads%2Fmaster;hp=6fcae894242a2433b7d4c520748891ab891cedb2;hpb=cd1c3d0483b9026736fdcb151d90dda872d8a400;p=PrivacyBrowserPC.git diff --git a/src/databases/CookiesDatabase.h b/src/databases/CookiesDatabase.h index 6fcae89..b81557b 100644 --- a/src/databases/CookiesDatabase.h +++ b/src/databases/CookiesDatabase.h @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Soren Stoutner . + * Copyright 2022-2023 Soren Stoutner . * * This file is part of Privacy Browser PC . * @@ -33,21 +33,23 @@ public: // The public functions. static void addDatabase(); static void addCookie(const QNetworkCookie &cookie); + static int cookieCount(); static void deleteAllCookies(); static void deleteCookie(const QNetworkCookie &cookie); static QList* getCookies(); + static QNetworkCookie* getCookieById(const int &id); static bool isDurable(const QNetworkCookie &cookie); static bool isUpdate(const QNetworkCookie &cookie); static void updateCookie(const QNetworkCookie &cookie); static void updateCookie(const QNetworkCookie &oldCookie, const QNetworkCookie &newCookie); // The public constants. - static const QString _ID; static const QString CONNECTION_NAME; static const QString COOKIES_TABLE; static const QString DOMAIN; static const QString EXPIRATION_DATE; static const QString HTTP_ONLY; + static const QString ID; static const QString NAME; static const QString PATH; static const QString SECURE;