• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kioslave/http

kcookieserver.h

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 General Public License
00008     version 2 as published by the Free Software Foundation.
00009 
00010     This software is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this library; see the file COPYING. If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 //----------------------------------------------------------------------------
00021 //
00022 // KDE Cookie Server
00023 // $Id$
00024 
00025 #ifndef KCOOKIESERVER_H
00026 #define KCOOKIESERVER_H
00027 
00028 #include <qstringlist.h>
00029 #include <kded/kdedmodule.h>
00030 
00031 class KHttpCookieList;
00032 class KCookieJar;
00033 class KHttpCookie;
00034 class QTimer;
00035 class RequestList;
00036 class DCOPClient;
00037 class KConfig;
00038 
00039 class KCookieServer : public KDEDModule
00040 {
00041   Q_OBJECT
00042   K_DCOP
00043 public:
00044   KCookieServer(const QCString &);
00045   ~KCookieServer();
00046 
00047 k_dcop:
00048   QString findCookies(QString);
00049   QString findCookies(QString, long);
00050   QStringList findDomains();
00051   QStringList findCookies(QValueList<int>,QString,QString,QString,QString);
00052   QString findDOMCookies(QString);
00053   QString findDOMCookies(QString, long);
00054   void addCookies(QString, QCString, long);
00055   void deleteCookie(QString, QString, QString, QString);
00056   void deleteCookiesFromDomain(QString);
00057   void deleteSessionCookies(long);
00058   void deleteSessionCookiesFor(QString, long);
00059   void deleteAllCookies();
00060   void addDOMCookies(QString, QCString, long);
00064   void setDomainAdvice(QString url, QString advice);
00068   QString getDomainAdvice(QString url);
00069   void reloadPolicy();
00070   void shutdown();
00071 
00072 public:
00073   bool cookiesPending(const QString &url, KHttpCookieList *cookieList=0);
00074   void addCookies(const QString &url, const QCString &cookieHeader,
00075                   long windowId, bool useDOMFormat);
00076   void checkCookies(KHttpCookieList *cookieList);
00077 
00078 public slots:
00079   void slotSave();
00080   void slotDeleteSessionCookies(long);
00081 
00082 protected:
00083   KCookieJar *mCookieJar;
00084   KHttpCookieList *mPendingCookies;
00085   RequestList *mRequestList;
00086   QTimer *mTimer;
00087   bool mAdvicePending;
00088   DCOPClient *mOldCookieServer;
00089   KConfig *mConfig;
00090 
00091 private:
00092   virtual int newInstance(QValueList<QCString>) { return 0; }
00093   bool cookieMatches(KHttpCookie*, QString, QString, QString, QString);
00094   void putCookie(QStringList&, KHttpCookie*, const QValueList<int>&);
00095   void saveCookieJar();
00096 };
00097 
00098 #endif

kioslave/http

Skip menu "kioslave/http"
  • Main Page
  • Alphabetical List
  • Class List
  • File List

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
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