• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIOSlave

kcookieserver.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the KDE File Manager
00003 
00004     Copyright (C) 1998 Waldo Bastian (bastian@kde.org)
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public License
00008     as published by the Free Software Foundation; either
00009     version 2, or (at your option) version 3.
00010 
00011     This software is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this library; see the file COPYING. If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 //----------------------------------------------------------------------------
00022 //
00023 // KDE Cookie Server
00024 
00025 #ifndef KCOOKIESERVER_H
00026 #define KCOOKIESERVER_H
00027 
00028 #include <QtCore/QStringList>
00029 #include <kdedmodule.h>
00030 #include <QtDBus/QtDBus>
00031 #include <QtDBus/QDBusContext>
00032 
00033 class KHttpCookieList;
00034 class KCookieJar;
00035 class KHttpCookie;
00036 class QTimer;
00037 class RequestList;
00038 class KConfig;
00039 
00040 class KCookieServer : public KDEDModule, protected QDBusContext
00041 {
00042     Q_OBJECT
00043     Q_CLASSINFO("D-Bus Interface", "org.kde.KCookieServer")
00044 public:
00045     KCookieServer(QObject* parent, const QList<QVariant>&);
00046     ~KCookieServer();
00047 
00048 public Q_SLOTS:
00049   QString listCookies(const QString &url);
00050   QString findCookies(const QString &url, qlonglong windowId);
00051   QStringList findDomains();
00052   QStringList findCookies(const QList<int> &fields,const QString &domain,const QString& fqdn,const QString &path, const QString &name);
00053   QString findDOMCookies(const QString &url);
00054   QString findDOMCookies(const QString &url, qlonglong windowId);
00055   void addCookies(const QString &url, const QByteArray &cookieHeader, qlonglong windowId);
00056   void deleteCookie(const QString &domain, const QString &fqdn, const QString &path, const QString &name);
00057   void deleteCookiesFromDomain(const QString &domain);
00058   void deleteSessionCookies(qlonglong windowId);
00059   void deleteSessionCookiesFor(const QString &fqdn, qlonglong windowId);
00060   void deleteAllCookies();
00061   void addDOMCookies(const QString &url, const QByteArray &cookieHeader, qlonglong windowId);
00065   void setDomainAdvice(const QString &url, const QString &advice);
00069   QString getDomainAdvice(const QString &url);
00070   void reloadPolicy();
00071   void shutdown();
00072 
00073 public:
00074   bool cookiesPending(const QString &url, KHttpCookieList *cookieList=0);
00075   void addCookies(const QString &url, const QByteArray &cookieHeader,
00076                   qlonglong windowId, bool useDOMFormat);
00077   void checkCookies(KHttpCookieList *cookieList);
00078 
00079 private Q_SLOTS:
00080   void slotSave();
00081   void slotDeleteSessionCookies(qlonglong windowId);
00082 
00083 private:
00084   KCookieJar *mCookieJar;
00085   KHttpCookieList *mPendingCookies;
00086   RequestList *mRequestList;
00087   QTimer *mTimer;
00088   bool mAdvicePending;
00089   KConfig *mConfig;
00090 
00091 private:
00092   virtual int newInstance(QList<QByteArray>) { return 0; }
00093   bool cookieMatches(const KHttpCookie&, const QString&, const QString&, const QString&, const QString&);
00094   void putCookie(QStringList&, const KHttpCookie&, const QList<int>&);
00095   void saveCookieJar();
00096 };
00097 
00098 #endif

KIOSlave

Skip menu "KIOSlave"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal