25 #ifndef KCOOKIESERVER_H
26 #define KCOOKIESERVER_H
28 #include <tqstringlist.h>
29 #include <kded/kdedmodule.h>
31 class KHttpCookieList;
39 class KCookieServer :
public KDEDModule
44 KCookieServer(
const TQCString &);
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);
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);
80 void slotDeleteSessionCookies(
long);
83 KCookieJar *mCookieJar;
84 KHttpCookieList *mPendingCookies;
85 RequestList *mRequestList;
88 DCOPClient *mOldCookieServer;
92 virtual int newInstance(TQValueList<TQCString>) {
return 0; }
93 bool cookieMatches(KHttpCookie*, TQString, TQString, TQString, TQString);
94 void putCookie(TQStringList&, KHttpCookie*,
const TQValueList<int>&);