pleyo.com

BCCookieManager Class Reference

The cookie manager is responsible of the cookie storage. More...

#include <BCCookieManager.h>

Inheritance diagram for BCCookieManager:

BICookieJar BAL::BIObserver

List of all members.

Public Member Functions

 BCCookieManager ()
 ~BCCookieManager ()
int add (const WebCore::String &host, const BTCookie &cookie)
 Add a cookie for a host in map.
bool respectsSecurityStandards (const KURL &url, BTCookie &cookie)
bool thisMapExists (String mapName)
HashMap
< WebCore::String,
BTCookieMap * > 
getMapListForHost (const WebCore::String &host, bool onlyOneMap=false) const
 Ask for the cookie map related to host.
void observe (const String &, const String &)
 Link cookie manager to an observer.
void saveCookiesToFile ()
 Save all the cookies in a file for backup We use a text file for this.
void getCookiesFromFile ()
 Load all the cookies from a file Expired cookies and previous session cookies are left behind.

Public Attributes

 IMPLEMENT_BICOOKIEJAR


Detailed Description

The cookie manager is responsible of the cookie storage.

It owns a cookie map for each host which owns cookies.


Constructor & Destructor Documentation

BCCookieManager::BCCookieManager (  ) 

BCCookieManager::~BCCookieManager (  ) 


Member Function Documentation

int BCCookieManager::add ( const WebCore::String host,
const BTCookie cookie 
)

Add a cookie for a host in map.

Parameters:
in) the owner host
in) the cookie to add

bool BCCookieManager::respectsSecurityStandards ( const KURL &  url,
BTCookie cookie 
)

bool BCCookieManager::thisMapExists ( String  mapName  ) 

HashMap<WebCore::String, BTCookieMap*> BCCookieManager::getMapListForHost ( const WebCore::String host,
bool  onlyOneMap = false 
) const

Ask for the cookie map related to host.

Parameters:
in) the host concerned
Returns:
a list of cookie maps containing cookies for host

0 if there's no cookie for host

void BCCookieManager::observe ( const String &  topic,
const String &  data 
)

Link cookie manager to an observer.

Parameters:
in) the topic to register
in) the cookie

void BCCookieManager::saveCookiesToFile (  ) 

Save all the cookies in a file for backup We use a text file for this.

void BCCookieManager::getCookiesFromFile (  ) 

Load all the cookies from a file Expired cookies and previous session cookies are left behind.


Member Data Documentation

BCCookieManager::IMPLEMENT_BICOOKIEJAR


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 20:04:18 2007 for Origyn Web Browser by Doxygen 1.5.3

pleyo.com
pleyo.com