1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef __FORM_HH__
#define __FORM_HH__
#include "url.h"
/*
* Typedefs
*/
typedef enum {
DILLO_HTML_METHOD_UNKNOWN,
DILLO_HTML_METHOD_GET,
DILLO_HTML_METHOD_POST
} DilloHtmlMethod;
typedef enum {
DILLO_HTML_ENC_URLENCODING,
DILLO_HTML_ENC_MULTIPART
} DilloHtmlEnc;
/*
* Classes
*/
class DilloHtmlForm;
class DilloHtml;
/*
* Form API
*/
DilloHtmlForm *a_Html_form_new(DilloHtml *html,
DilloHtmlMethod method,
const DilloUrl *action,
DilloHtmlEnc enc,
const char *charset);
void a_Html_form_delete(DilloHtmlForm* form);
/*
* Form parsing functions
*/
void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_form(DilloHtml *html, int TagIdx);
void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_textarea(DilloHtml *html, int TagIdx);
void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_select(DilloHtml *html, int TagIdx);
void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_button(DilloHtml *html, int TagIdx);
#endif /* __FORM_HH__ */
|