#include <httpform.h>
Inheritance diagram for PHTTPConfig:
Public Member Functions | |
PHTTPConfig (const PURL &url, const PString §ion) | |
PHTTPConfig (const PURL &url, const PString §ion, const PHTTPAuthority &auth) | |
PHTTPConfig (const PURL &url, const PString §ion, const PString &html) | |
PHTTPConfig (const PURL &url, const PString §ion, 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 PString & | GetConfigSection () const |
void | SetConfigSection (const PString §) |
PHTTPField * | AddSectionField (PHTTPField *sectionFld, const char *prefix=NULL, const char *suffix=NULL) |
void | AddNewKeyFields (PHTTPField *keyFld, PHTTPField *valFld) |
Protected Attributes | |
PString | section |
PString | sectionPrefix |
PString | sectionSuffix |
PHTTPField * | sectionField |
PHTTPField * | keyField |
PHTTPField * | valField |
PHTTPConfig::PHTTPConfig | ( | const PURL & | url, | |
const PString & | section, | |||
const PString & | html, | |||
const PHTTPAuthority & | auth | |||
) |
virtual void PHTTPConfig::OnLoadedText | ( | PHTTPRequest & | request, | |
PString & | text | |||
) | [virtual] |
request | Information on this request. |
text | Data used in reply. |
Reimplemented from PHTTPForm.
Reimplemented in PConfigPage, and PRegisterPage.
virtual BOOL PHTTPConfig::Post | ( | PHTTPRequest & | request, | |
const PStringToString & | data, | |||
PHTML & | replyMessage | |||
) | [virtual] |
request | Information on this request. |
data | Variables in the POST data. |
replyMessage | Reply message for post. |
Reimplemented from PHTTPForm.
Reimplemented in PConfigPage, and PRegisterPage.
void PHTTPConfig::LoadFromConfig | ( | ) |
Load all of the values for the resource from the configuration.
const PString& PHTTPConfig::GetConfigSection | ( | ) | const [inline] |
Get the configuration file section that the page will alter.
void PHTTPConfig::SetConfigSection | ( | const PString & | sect | ) | [inline] |
sect | New section for the config page. |
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.
sectionFld | Field to set as the section name |
prefix | String to attach before the field value |
suffix | String to attach after the field value |
void PHTTPConfig::AddNewKeyFields | ( | PHTTPField * | keyFld, | |
PHTTPField * | valFld | |||
) |
Add fields to the HTTP form for adding a new key to the config file section.
keyFld | Field for the key to be added. |
valFld | Field for the value of the key yto be added. |
PString PHTTPConfig::section [protected] |
PString PHTTPConfig::sectionPrefix [protected] |
PString PHTTPConfig::sectionSuffix [protected] |
PHTTPField* PHTTPConfig::sectionField [protected] |
PHTTPField* PHTTPConfig::keyField [protected] |
PHTTPField* PHTTPConfig::valField [protected] |