Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

PHTTPConfig Class Reference

#include <httpform.h>

Inheritance diagram for PHTTPConfig:

PHTTPForm PHTTPString PHTTPResource PObject PConfigPage PRegisterPage List of all members.

Public Member Functions

 PHTTPConfig (const PURL &url, const PString &section)
 PHTTPConfig (const PURL &url, const PString &section, const PHTTPAuthority &auth)
 PHTTPConfig (const PURL &url, const PString &section, const PString &html)
 PHTTPConfig (const PURL &url, const PString &section, const PString &html, const PHTTPAuthority &auth)
virtual void OnLoadedText (PHTTPRequest &request, PString &text)
virtual BOOL Post (PHTTPRequest &request, const PStringToString &data, PHTML &replyMessage)
void LoadFromConfig ()
const PStringGetConfigSection () const
void SetConfigSection (const PString &sect)
PHTTPFieldAddSectionField (PHTTPField *sectionFld, const char *prefix=NULL, const char *suffix=NULL)
void AddNewKeyFields (PHTTPField *keyFld, PHTTPField *valFld)

Protected Attributes

PString section
PString sectionPrefix
PString sectionSuffix
PHTTPFieldsectionField
PHTTPFieldkeyField
PHTTPFieldvalField

Constructor & Destructor Documentation

PHTTPConfig::PHTTPConfig const PURL url,
const PString section
 

PHTTPConfig::PHTTPConfig const PURL url,
const PString section,
const PHTTPAuthority auth
 

PHTTPConfig::PHTTPConfig const PURL url,
const PString section,
const PString html
 

PHTTPConfig::PHTTPConfig const PURL url,
const PString section,
const PString html,
const PHTTPAuthority auth
 


Member Function Documentation

void PHTTPConfig::AddNewKeyFields PHTTPField keyFld,
PHTTPField valFld
 

Add fields to the HTTP form for adding a new key to the config file section.

PHTTPField* PHTTPConfig::AddSectionField PHTTPField sectionFld,
const char *  prefix = NULL,
const char *  suffix = NULL
 

Add a field that will determine the name opf the secontion into which the other fields are to be added as keys. The section is not created and and error generated if the section already exists.

const PString& PHTTPConfig::GetConfigSection  )  const [inline]
 

Get the configuration file section that the page will alter.

Returns:
String for config file section.

void PHTTPConfig::LoadFromConfig  ) 
 

Load all of the values for the resource from the configuration.

virtual void PHTTPConfig::OnLoadedText PHTTPRequest request,
PString text
[virtual]
 

This is called after the text has been loaded and may be used to customise or otherwise mangle a loaded piece of text. Typically this is used with HTML responses.

The default action for this function is to do nothing.

Reimplemented from PHTTPForm.

Reimplemented in PConfigPage, and PRegisterPage.

virtual BOOL PHTTPConfig::Post PHTTPRequest request,
const PStringToString data,
PHTML replyMessage
[virtual]
 

Get a block of data (eg HTML) that the resource contains.

The default action for this function is to do nothing and return success.

Returns:
TRUE if the connection may persist, FALSE if the connection must close

Reimplemented from PHTTPForm.

Reimplemented in PConfigPage, and PRegisterPage.

void PHTTPConfig::SetConfigSection const PString sect  )  [inline]
 


Member Data Documentation

PHTTPField* PHTTPConfig::keyField [protected]
 

PString PHTTPConfig::section [protected]
 

PHTTPField* PHTTPConfig::sectionField [protected]
 

PString PHTTPConfig::sectionPrefix [protected]
 

PString PHTTPConfig::sectionSuffix [protected]
 

PHTTPField* PHTTPConfig::valField [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Jul 24 15:35:58 2004 for PWLib by doxygen 1.3.7