• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeioslave/http
 

tdeioslave/http

  • tdeioslave
  • http
  • kcookiejar
kcookieserver.h
1/*
2 This file is part of the KDE File Manager
3
4 Copyright (C) 1998 Waldo Bastian (bastian@kde.org)
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 version 2 as published by the Free Software Foundation.
9
10 This software is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this library; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20//----------------------------------------------------------------------------
21//
22// KDE Cookie Server
23// $Id$
24
25#ifndef KCOOKIESERVER_H
26#define KCOOKIESERVER_H
27
28#include <tqstringlist.h>
29#include <kded/kdedmodule.h>
30
31class KHttpCookieList;
32class KCookieJar;
33class KHttpCookie;
34class TQTimer;
35class RequestList;
36class DCOPClient;
37class TDEConfig;
38
39class KCookieServer : public KDEDModule
40{
41 TQ_OBJECT
42 K_DCOP
43public:
44 KCookieServer(const TQCString &);
45 ~KCookieServer();
46
47k_dcop:
48 TQString findCookies(TQString);
49 TQString findCookies(TQString, long);
50 TQStringList findDomains();
51 TQStringList findCookies(TQValueList<int>,TQString,TQString,TQString,TQString);
52 TQString findDOMCookies(TQString);
53 TQString findDOMCookies(TQString, long);
54 void addCookies(TQString, TQCString, long);
55 void deleteCookie(TQString, TQString, TQString, TQString);
56 void deleteCookiesFromDomain(TQString);
57 void deleteSessionCookies(long);
58 void deleteSessionCookiesFor(TQString, long);
59 void deleteAllCookies();
60 void addDOMCookies(TQString, TQCString, long);
64 void setDomainAdvice(TQString url, TQString advice);
68 TQString getDomainAdvice(TQString url);
69 void reloadPolicy();
70 void shutdown();
71
72public:
73 bool cookiesPending(const TQString &url, KHttpCookieList *cookieList=0);
74 void addCookies(const TQString &url, const TQCString &cookieHeader,
75 long windowId, bool useDOMFormat);
76 void checkCookies(KHttpCookieList *cookieList);
77
78public slots:
79 void slotSave();
80 void slotDeleteSessionCookies(long);
81
82protected:
83 KCookieJar *mCookieJar;
84 KHttpCookieList *mPendingCookies;
85 RequestList *mRequestList;
86 TQTimer *mTimer;
87 bool mAdvicePending;
88 DCOPClient *mOldCookieServer;
89 TDEConfig *mConfig;
90
91private:
92 virtual int newInstance(TQValueList<TQCString>) { return 0; }
93 bool cookieMatches(KHttpCookie*, TQString, TQString, TQString, TQString);
94 void putCookie(TQStringList&, KHttpCookie*, const TQValueList<int>&);
95 void saveCookieJar();
96};
97
98#endif

tdeioslave/http

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

tdeioslave/http

Skip menu "tdeioslave/http"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeioslave/http by doxygen 1.9.4
This website is maintained by Timothy Pearson.