|
PWLib
1.10.10
|
#include <httpform.h>
Public Member Functions | |
| PHTTPCompositeField (const char *name, const char *title=NULL, const char *help=NULL) | |
| virtual void | SetName (const PString &name) |
| virtual const PHTTPField * | LocateName (const PString &name) const |
| virtual PHTTPField * | NewField () const |
| virtual void | ExpandFieldNames (PString &text, PINDEX start, PINDEX &finish) const |
| virtual void | GetHTMLTag (PHTML &html) const |
| virtual PString | GetHTMLInput (const PString &input) const |
| virtual void | GetHTMLHeading (PHTML &html) const |
| virtual PString | GetValue (BOOL dflt=FALSE) const |
| virtual void | SetValue (const PString &newValue) |
| virtual void | LoadFromConfig (PConfig &cfg) |
| virtual void | SaveToConfig (PConfig &cfg) const |
| virtual void | GetAllNames (PStringList &list) const |
| virtual void | SetAllValues (const PStringToString &data) |
| virtual BOOL | ValidateAll (const PStringToString &data, PStringStream &msg) const |
| virtual PINDEX | GetSize () const |
| void | Append (PHTTPField *fld) |
| PHTTPField & | operator[] (PINDEX idx) const |
| void | RemoveAt (PINDEX idx) |
| void | RemoveAll () |
Protected Attributes | |
| PHTTPFieldList | fields |
| PHTTPCompositeField::PHTTPCompositeField | ( | const char * | name, |
| const char * | title = NULL, |
||
| const char * | help = NULL |
||
| ) |
| void PHTTPCompositeField::Append | ( | PHTTPField * | fld | ) |
| virtual void PHTTPCompositeField::ExpandFieldNames | ( | PString & | text, |
| PINDEX | start, | ||
| PINDEX & | finish | ||
| ) | const [virtual] |
Reimplemented from PHTTPField.
Reimplemented in PHTTPFieldArray.
| virtual void PHTTPCompositeField::GetAllNames | ( | PStringList & | list | ) | const [virtual] |
Retrieve all the names in the field and subfields.
Reimplemented from PHTTPField.
| virtual void PHTTPCompositeField::GetHTMLHeading | ( | PHTML & | html | ) | const [virtual] |
Convert the field to HTML for inclusion into the HTTP page.
Reimplemented from PHTTPField.
Reimplemented in PHTTPSubForm.
| virtual PString PHTTPCompositeField::GetHTMLInput | ( | const PString & | input | ) | const [virtual] |
Convert the field input to HTML for inclusion into the HTTP page.
Reimplemented from PHTTPField.
| virtual void PHTTPCompositeField::GetHTMLTag | ( | PHTML & | html | ) | const [virtual] |
Convert the field to HTML form tag for inclusion into the HTTP page.
Implements PHTTPField.
Reimplemented in PHTTPFieldArray, and PHTTPSubForm.
| virtual PINDEX PHTTPCompositeField::GetSize | ( | ) | const [virtual] |
Get the number of sub-fields in the composite field. Note that this is the total including any composite sub-fields, ie, it is the size of the whole tree of primitive fields.
Reimplemented in PHTTPFieldArray.
| virtual PString PHTTPCompositeField::GetValue | ( | BOOL | dflt = FALSE | ) | const [virtual] |
| virtual void PHTTPCompositeField::LoadFromConfig | ( | PConfig & | cfg | ) | [virtual] |
Get the value of the PConfig to the sub-field. If the field is not composite then it always sets the value as for the non-indexed version.
Reimplemented from PHTTPField.
Reimplemented in PHTTPFieldArray.
| virtual const PHTTPField* PHTTPCompositeField::LocateName | ( | const PString & | name | ) | const [virtual] |
Locate the field naem, recusing down for composite fields.
Reimplemented from PHTTPField.
| virtual PHTTPField* PHTTPCompositeField::NewField | ( | ) | const [virtual] |
Create a new field of the same class as the current field.
Implements PHTTPField.
Reimplemented in PHTTPFieldArray, and PHTTPSubForm.
| PHTTPField& PHTTPCompositeField::operator[] | ( | PINDEX | idx | ) | const [inline] |
References fields.
| void PHTTPCompositeField::RemoveAll | ( | ) | [inline] |
References fields.
Referenced by PHTTPForm::RemoveAllFields().
| void PHTTPCompositeField::RemoveAt | ( | PINDEX | idx | ) | [inline] |
References fields.
| virtual void PHTTPCompositeField::SaveToConfig | ( | PConfig & | cfg | ) | const [virtual] |
Set the value of the sub-field into the PConfig. If the field is not composite then it always sets the value as for the non-indexed version.
Reimplemented from PHTTPField.
Reimplemented in PHTTPFieldArray.
| virtual void PHTTPCompositeField::SetAllValues | ( | const PStringToString & | data | ) | [virtual] |
Set the value of the field in a list of fields.
Reimplemented from PHTTPField.
Reimplemented in PHTTPFieldArray.
| virtual void PHTTPCompositeField::SetName | ( | const PString & | newName | ) | [virtual] |
Set the name for the field.
Reimplemented from PHTTPField.
| virtual void PHTTPCompositeField::SetValue | ( | const PString & | newValue | ) | [virtual] |
Set the value of the field.
Implements PHTTPField.
| virtual BOOL PHTTPCompositeField::ValidateAll | ( | const PStringToString & | data, |
| PStringStream & | msg | ||
| ) | const [virtual] |
Validate the new field value in a list before SetValue()# is called.
Reimplemented from PHTTPField.
PHTTPFieldList PHTTPCompositeField::fields [protected] |
Referenced by operator[](), RemoveAll(), and RemoveAt().
1.7.6.1