NetSurf
Public Member Functions | Private Member Functions | Private Attributes
CookieWindow Class Reference
Inheritance diagram for CookieWindow:
[legend]
Collaboration diagram for CookieWindow:
[legend]

Public Member Functions

 CookieWindow (BRect frame)
 
virtual void MessageReceived (BMessage *message)
 
virtual void Show ()
 
virtual bool QuitRequested ()
 

Private Member Functions

void _BuildDomainList ()
 
BStringItem * _AddDomain (BString domain, bool fake)
 
void _ShowCookiesForDomain (BString domain)
 
void _DeleteCookies ()
 

Private Attributes

BOutlineListView * fDomains
 
BColumnListView * fCookies
 
BStringView * fHeaderView
 

Detailed Description

Definition at line 50 of file cookies.cpp.

Constructor & Destructor Documentation

◆ CookieWindow()

CookieWindow::CookieWindow ( BRect  frame)

Definition at line 143 of file cookies.cpp.

References COOKIE_DELETE, DOMAIN_SELECTED, fCookies, fDomains, fHeaderView, and root.

Member Function Documentation

◆ _AddDomain()

BStringItem * CookieWindow::_AddDomain ( BString  domain,
bool  fake 
)
private

Definition at line 311 of file cookies.cpp.

References _AddDomain(), fDomains, DomainItem::fEmpty, and parent.

Referenced by _AddDomain(), and _BuildDomainList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _BuildDomainList()

void CookieWindow::_BuildDomainList ( )
private

Definition at line 239 of file cookies.cpp.

References _AddDomain(), cookieJar, count(), fDomains, and DomainItem::fEmpty.

Referenced by MessageReceived().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _DeleteCookies()

void CookieWindow::_DeleteCookies ( )
private

Definition at line 388 of file cookies.cpp.

References cookieJar, cookie_data::domain, CookieRow::fCookie, fCookies, cookie_data::name, nsbeos_cookie_parser(), cookie_data::path, urldb_delete_cookie(), and urldb_iterate_cookies().

Referenced by MessageReceived().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _ShowCookiesForDomain()

void CookieWindow::_ShowCookiesForDomain ( BString  domain)
private

Definition at line 363 of file cookies.cpp.

References cookieJar, fCookies, and fHeaderView.

Referenced by MessageReceived().

Here is the caller graph for this function:

◆ MessageReceived()

void CookieWindow::MessageReceived ( BMessage *  message)
virtual

Definition at line 191 of file cookies.cpp.

References _BuildDomainList(), _DeleteCookies(), _ShowCookiesForDomain(), COOKIE_DELETE, COOKIE_REFRESH, DOMAIN_SELECTED, and fDomains.

Here is the call graph for this function:

◆ QuitRequested()

bool CookieWindow::QuitRequested ( )
virtual

Definition at line 229 of file cookies.cpp.

References cookieJar.

◆ Show()

void CookieWindow::Show ( )
virtual

Definition at line 218 of file cookies.cpp.

References COOKIE_REFRESH.

Referenced by nsbeos_cookies_init().

Here is the caller graph for this function:

Field Documentation

◆ fCookies

BColumnListView* CookieWindow::fCookies
private

Definition at line 65 of file cookies.cpp.

Referenced by _DeleteCookies(), _ShowCookiesForDomain(), and CookieWindow().

◆ fDomains

BOutlineListView* CookieWindow::fDomains
private

Definition at line 64 of file cookies.cpp.

Referenced by _AddDomain(), _BuildDomainList(), CookieWindow(), and MessageReceived().

◆ fHeaderView

BStringView* CookieWindow::fHeaderView
private

Definition at line 66 of file cookies.cpp.

Referenced by _ShowCookiesForDomain(), and CookieWindow().


The documentation for this class was generated from the following file: