swift
Loading...
Searching...
No Matches
cookiemanager.cpp
1// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#include <QNetworkCookie>
7#include <QNetworkCookieJar>
8#include <QNetworkRequest>
9#include <QReadLocker>
10#include <QWriteLocker>
11
12namespace swift::core
13{
15
17 {
18 QWriteLocker l(&m_lock);
19 return QNetworkCookieJar::setCookiesFromUrl(cookies, url);
20 }
21
23 {
24 QReadLocker l(&m_lock);
26 return cookies;
27 }
28
30 {
31 QWriteLocker l(&m_lock);
33 }
34
36 {
37 QWriteLocker l(&m_lock);
39 }
40
42 {
43 QWriteLocker l(&m_lock);
45 }
46
52
53} // namespace swift::core
Backend services of the swift project, like dealing with the network or the simulators.
Definition actionbind.cpp:7
QNetworkCookieJar(QObject *parent)
virtual QList< QNetworkCookie > cookiesForUrl(const QUrl &url) const const
virtual bool deleteCookie(const QNetworkCookie &cookie)
virtual bool insertCookie(const QNetworkCookie &cookie)
void setAllCookies(const QList< QNetworkCookie > &cookieList)
virtual bool setCookiesFromUrl(const QList< QNetworkCookie > &cookieList, const QUrl &url)
virtual bool updateCookie(const QNetworkCookie &cookie)
QObject(QObject *parent)
QObject * parent() const const