bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: doHTML.h
- Revision:
- 5:c9a908749d4c
- Parent:
- 3:1196befeace0
- Child:
- 7:7ea932eb31f6
--- a/doHTML.h Sat Apr 11 17:11:38 2020 +0000 +++ b/doHTML.h Sun Apr 12 17:59:57 2020 +0000 @@ -1,9 +1,70 @@ #ifndef doHTML_H #define doHTML_H -void init_html( void ); -char *getHTML_free( void ); -void putHTMLintoFlash( void ); +#include "dxml.h" + + + + class C_HTMLparse + { + private: + + char* p_HTMLpage; + dxml_t p_rootHTML; + dxml_t html_body, html_form, html_table, tr; + dxml_t front_row[3]; + dxml_t UDPs[10]; + dxml_t TCPs[10]; + dxml_t serial[4]; + + void load_front_row(); + void load_second_row(); + void load_udp_and_tcp(dxml_t& td); + void load_serial(dxml_t& td); + dxml_t get_serial_option(dxml_t s, int option_idx); + void intern_init( void ); + + + public: + + C_HTMLparse( void ); + C_HTMLparse( const char *str ); + + + const char *get_selected_option( const char *name_option ); + const char * set_selected_option( const char* name_option, const char* value_option ); + char *getHTML_free( void ); + + + const char *get_myIP( void ); + const char *get_myMASK(void); + const char *get_myGATE( void ); + + const char *get_myUdpPort( void ); + const char *get_myTcpPort( void ); + + const char *get_UdpIP( int i ); + const char *get_UdpPort( int i ); + + const char *get_TcpIP( int i ); + const char *get_TcpPort( int i ); + + + void set_myIP( const char* str ); + void set_myMASK( const char* str ); + void set_myGATE( const char* str ); + + void set_myUdpPort( const char* str ); + void set_myTcpPort( const char* str ); + + void set_UdpIP( int i, const char* str ); + void set_UdpPort( int i, const char* str ); + + void set_TcpIP( int i, const char* str ); + void set_TcpPort( int i, const char* str ); + + +}; #endif \ No newline at end of file