XEP-0004 Data form.
More...
List of all members.
Detailed Description
XEP-0004 Data form.
For the relevant Fields, the parsers and serialisers protect the API user against the strange multi-value instead of newline thing by transforming them.
Definition at line 23 of file Form.h.
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
FormType |
|
SubmitType |
|
CancelType |
|
ResultType |
|
Definition at line 28 of file Form.h.
Constructor & Destructor Documentation
Swift::Form::Form |
( |
Type |
type = FormType |
) |
[inline] |
Member Function Documentation
void Swift::Form::addField |
( |
boost::shared_ptr< FormField > |
field |
) |
[inline] |
Add a field to the form.
- Parameters:
-
| field | New field - must not be null. |
Definition at line 36 of file Form.h.
void Swift::Form::addItem |
( |
const FormItem & |
item |
) |
|
FormField::ref Swift::Form::getField |
( |
const std::string & |
name |
) |
const |
const std::vector<boost::shared_ptr<FormField> >& Swift::Form::getFields |
( |
|
) |
const [inline] |
std::string Swift::Form::getFormType |
( |
|
) |
const |
const std::string& Swift::Form::getInstructions |
( |
|
) |
const [inline] |
const std::vector<FormItem>& Swift::Form::getItems |
( |
|
) |
const |
const std::vector<FormField::ref>& Swift::Form::getReportedFields |
( |
|
) |
const |
const std::string& Swift::Form::getTitle |
( |
|
) |
const [inline] |
Type Swift::Form::getType |
( |
|
) |
const [inline] |
void Swift::Form::setInstructions |
( |
const std::string & |
instructions |
) |
[inline] |
void Swift::Form::setTitle |
( |
const std::string & |
title |
) |
[inline] |
void Swift::Form::setType |
( |
Type |
type |
) |
[inline] |