KIOSlave
kcookieserver.cpp
Go to the documentation of this file.
527 KCookieServer::addDOMCookies(const QString &url, const QByteArray &cookieHeader, qlonglong windowId)
void deleteSessionCookiesFor(const QString &fqdn, qlonglong windowId)
Definition: kcookieserver.cpp:511
KHttpCookieList * getCookieList(const QString &_domain, const QString &_fqdn)
Get a list of all cookies in the cookie jar originating from _domain.
Definition: kcookiejar.cpp:1144
KHttpCookieList makeDOMCookies(const QString &_url, const QByteArray &cookie_domstr, long windowId)
This function parses cookie_headers and returns a linked list of valid KHttpCookie objects for all co...
Definition: kcookiejar.cpp:863
bool match(const QString &fqdn, const QStringList &domainList, const QString &path, int port=-1) const
Definition: kcookiejar.cpp:238
void setDomainAdvice(const QString &_domain, KCookieAdvice _advice)
This function sets the advice for all cookies originating from _domain.
Definition: kcookiejar.cpp:1080
static KCookieAdvice strToAdvice(const QString &_str)
Definition: kcookiejar.cpp:143
KCookieAdvice advice(KCookieJar *cookiejar, const KHttpCookie &cookie)
Definition: kcookiewin.cpp:186
K_PLUGIN_FACTORY(KdedCookieServerFactory, registerPlugin< KCookieServer >();) enum CookieDetails
Definition: kcookieserver.cpp:50
void setDelayedReply(bool enable) const
Definition: kcookiejar.h:49
bool remove()
KCookieAdvice getGlobalAdvice() const
Get the global advice for cookies.
Definition: kcookiejar.h:280
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void addCookies(const QString &url, const QByteArray &cookieHeader, qlonglong windowId)
Definition: kcookieserver.cpp:462
int timeout
QString findDOMCookies(const QString &url)
Definition: kcookieserver.cpp:442
bool isExpired(qint64 currentDate=-1) const
If currentDate is -1, the default, then the current timestamp in UTC is used for comparison against t...
Definition: kcookiejar.cpp:196
void deleteCookie(const QString &domain, const QString &fqdn, const QString &path, const QString &name)
Definition: kcookieserver.cpp:469
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
Definition: kcookiejar.h:43
Definition: kcookiewin.h:63
void windowUnregistered(qlonglong windowId)
QDBusConnection sessionBus()
void addDOMCookies(const QString &url, const QByteArray &cookieHeader, qlonglong windowId)
Definition: kcookieserver.cpp:527
QString getDomainAdvice(const QString &url)
Returns the cookie policy in effect for the specified URL.
Definition: kcookieserver.cpp:554
QString findCookies(const QString &url, qlonglong windowId)
Definition: kcookieserver.cpp:355
KCookieServer(QObject *parent, const QList< QVariant > &)
Definition: kcookieserver.cpp:76
const char * name() const
QString number(int n, int base)
int count(const T &value) const
Definition: kcookiejar.h:45
void append(const T &value)
void addCookie(KHttpCookie &cookie)
This function hands a KHttpCookie object over to the cookie jar.
Definition: kcookiejar.cpp:934
void loadConfig(KConfig *_config, bool reparse=false)
Load the cookie configuration.
Definition: kcookiejar.cpp:1527
void eatCookie(KHttpCookieList::iterator cookieIterator)
Remove & delete a cookie from the jar.
Definition: kcookiejar.cpp:1161
bool isEmpty() const
bool send(const QDBusMessage &message) const
bool isEmpty() const
typedef Iterator
void remove()
void deleteLater()
T & first()
Definition: kcookiejar.h:113
KCookieDefaultPolicy preferredDefaultPolicy() const
Returns the user's choice in the cookie window.
Definition: kcookiejar.h:362
bool saveCookies(const QString &_filename)
Store all the cookies in a safe(?) place.
Definition: kcookiejar.cpp:1267
iterator end()
bool contains(const T &value) const
bool hasNext() const
const QStringList & getDomainList()
Get a list of all domains known to the cookie jar.
Definition: kcookiejar.cpp:1136
static void setMainWindow(QWidget *subwindow, WId mainwindow)
void deleteSessionCookies(qlonglong windowId)
Definition: kcookieserver.cpp:504
void extractDomains(const QString &_fqdn, QStringList &_domainList) const
Returns a list of domains in _domainList relevant for this host.
Definition: kcookiejar.cpp:594
KCookieAdvice cookieAdvice(const KHttpCookie &cookie) const
This function advices whether a single KHttpCookie object should be added to the cookie jar...
Definition: kcookiejar.cpp:1010
Definition: kcookiejar.h:44
Definition: kcookiejar.h:129
void checkCookies(KHttpCookieList *cookieList)
Definition: kcookieserver.cpp:167
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
T & next()
QString findCookies(const QString &_url, bool useDOMFormat, long windowId, KHttpCookieList *pendingCookies=0)
Looks for cookies in the cookie jar which are appropriate for _url.
Definition: kcookiejar.cpp:350
const QChar at(int position) const
void setUserSelectedAdvice(KCookieAdvice advice)
Definition: kcookiejar.h:108
void deleteCookiesFromDomain(const QString &domain)
Definition: kcookieserver.cpp:488
KCookieAdvice getDomainAdvice(const QString &_domain) const
This function gets the advice for all cookies originating from _domain.
Definition: kcookiejar.cpp:1063
bool loadCookies(const QString &_filename)
Load all the cookies from file and add them to the cookie jar.
Definition: kcookiejar.cpp:1390
bool setDomainAdvice(const QString &url, const QString &advice)
Sets the cookie policy for the domain associated with the specified URL.
Definition: kcookieserver.cpp:534
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KHttpCookieList makeCookies(const QString &_url, const QByteArray &cookie_headers, long windowId)
This function parses cookie_headers and returns a linked list of valid KHttpCookie objects for all co...
Definition: kcookiejar.cpp:665
void start(int msec)
void eatCookiesForDomain(const QString &domain)
Remove & delete all cookies for domain.
Definition: kcookiejar.cpp:1181
Definition: kcookiejar.h:42
bool cookiesPending(const QString &url, KHttpCookieList *cookieList=0)
Definition: kcookieserver.cpp:119
const QDBusMessage & message() const
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
iterator begin()
void eatSessionCookies(long windowId)
Removes all end of session cookies set by the session windId.
Definition: kcookiejar.cpp:1196
static bool parseUrl(const QString &_url, QString &_fqdn, QString &_path, int *port=0)
Parses _url and returns the FQDN (_fqdn) and path (_path).
Definition: kcookiejar.cpp:569
QStringList list(const QString &fileClass)
#define K_EXPORT_PLUGIN(factory)
void setSingleShot(bool singleShot)
static QString adviceToStr(KCookieAdvice _advice)
Definition: kcookiejar.cpp:131
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.