| 84 PURPLE_REQUEST_FIELD_CHOICE, |
85 PURPLE_REQUEST_FIELD_CHOICE, |
| 85 PURPLE_REQUEST_FIELD_LIST, |
86 PURPLE_REQUEST_FIELD_LIST, |
| 86 PURPLE_REQUEST_FIELD_LABEL, |
87 PURPLE_REQUEST_FIELD_LABEL, |
| 87 PURPLE_REQUEST_FIELD_IMAGE, |
88 PURPLE_REQUEST_FIELD_IMAGE, |
| 88 PURPLE_REQUEST_FIELD_ACCOUNT, |
89 PURPLE_REQUEST_FIELD_ACCOUNT, |
| 89 PURPLE_REQUEST_FIELD_CERTIFICATE |
90 PURPLE_REQUEST_FIELD_CERTIFICATE, |
| |
91 PURPLE_REQUEST_FIELD_DATASHEET |
| 90 |
92 |
| 91 } PurpleRequestFieldType; |
93 } PurpleRequestFieldType; |
| 92 |
94 |
| 93 typedef enum |
95 typedef enum |
| 94 { |
96 { |
| 1665 * |
1667 * |
| 1666 * @return The certificate. |
1668 * @return The certificate. |
| 1667 */ |
1669 */ |
| 1668 PurpleCertificate *purple_request_field_certificate_get_value( |
1670 PurpleCertificate *purple_request_field_certificate_get_value( |
| 1669 const PurpleRequestField *field); |
1671 const PurpleRequestField *field); |
| |
1672 |
| |
1673 /*@}*/ |
| |
1674 |
| |
1675 /**************************************************************************/ |
| |
1676 /** @name Datasheet Field API */ |
| |
1677 /**************************************************************************/ |
| |
1678 /*@{*/ |
| |
1679 |
| |
1680 /** |
| |
1681 * Creates a datasheet item field. |
| |
1682 * |
| |
1683 * @param id The field ID. |
| |
1684 * @param text The label of the field, may be @c NULL. |
| |
1685 * @param sheet The datasheet. |
| |
1686 * |
| |
1687 * @return The new field. |
| |
1688 */ |
| |
1689 PurpleRequestField *purple_request_field_datasheet_new(const char *id, |
| |
1690 const gchar *text, PurpleRequestDatasheet *sheet); |
| |
1691 |
| |
1692 /** |
| |
1693 * Returns a datasheet for a field. |
| |
1694 * |
| |
1695 * @param field The field. |
| |
1696 * |
| |
1697 * @constreturn The datasheet object. |
| |
1698 */ |
| |
1699 PurpleRequestDatasheet *purple_request_field_datasheet_get_sheet( |
| |
1700 PurpleRequestField *field); |
| 1670 |
1701 |
| 1671 /*@}*/ |
1702 /*@}*/ |
| 1672 |
1703 |
| 1673 /**************************************************************************/ |
1704 /**************************************************************************/ |
| 1674 /** @name Validators for request fields. */ |
1705 /** @name Validators for request fields. */ |