NetBurner 3.1
webFormValues.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #ifndef _WEB_FORM_VALUES_H_
6 #define _WEB_FORM_VALUES_H_
7 #pragma once
8 
9 #define DEF_WIDTH (250)
10 #define DEF_HT (250)
11 #define DEF_FRED (150)
12 #define DEF_FGREEN (0)
13 #define DEF_FBLUE (250)
14 #define DEF_BRED (250)
15 #define DEF_BGREEN (150)
16 #define DEF_BBLUE (0)
17 #define DEF_TRED (255)
18 #define DEF_TGREEN (255)
19 #define DEF_TBLUE (255)
20 
21 /* This class defines a BAR size width etc... */
22 
23 class WebFormValues
24 {
25  public:
26  uint16_t m_ht = DEF_HT;
27  uint16_t m_wid = DEF_WIDTH;
28  uint8_t m_fillRed = DEF_FRED;
29  uint8_t m_fillGreen = DEF_FGREEN;
30  uint8_t m_fillBlue = DEF_FBLUE;
31  uint8_t m_borderRed = DEF_BRED;
32  uint8_t m_borderGreen = DEF_BGREEN;
33  uint8_t m_borderBlue = DEF_BBLUE;
34  uint8_t m_textRed = DEF_TRED;
35  uint8_t m_textGreen = DEF_TGREEN;
36  uint8_t m_textBlue = DEF_TBLUE;
37 
38  WebFormValues();
39  WebFormValues(PCSTR url);
40  void WriteUrl(int sock, PCSTR Prefix);
41 };
42 
43 #endif /* _BAR_DEFINITION_H_ */