semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
dc_webview.h
1#ifndef _dc_webview_
2#define _dc_webview_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 116
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// variable: DcWebview.viewSizeTypes
15
16// describes the types of viewSize
18char viewSizeTypes[4][4] = {"1:1", "1:2", "3:2", "2:1"};
19
20// variable: DcWebview.displayMode
21
22// gives the choice to display the destination url in multiple modes (the default behaviour is link):
24char displayMode[3][10] = {"link", "thumbnail", "liveweb"};
25
26// Function: ~DcWebview
27
28// distructor of the class, frees up the memory occupied by the array/s
29
30// Prototype:
31// ~DcWebview()
32
33// Parameters:
34
35// Returns:
38 {
39 delete[] json;
40 json = nullptr;
41 }
42
43// Function: DcWebview.set
44
45// A message referencing a webpage, to be viewed as a web frame
46
47// Prototype:
48// void DcWebview::set(char* url, bool enableFullScreenView, char* viewSize);
49
50// Parameters:
56// Returns:
58 void set(char* url, bool enableFullScreenView, char* viewSize, char* displayMode, char* linkDisplayName);
59
60// Function: DcWebview.get
61
62// return the json script
63
64// Prototype:
65// void DcWebview::get();
66
67// Parameters:
68
69// Returns:
71 char* get();
72};
73
74#endif
Definition dc_webview.h:7
char viewSizeTypes[4][4]
Definition dc_webview.h:18
void set(char *url, bool enableFullScreenView, char *viewSize, char *displayMode, char *linkDisplayName)
Definition dc_webview.cpp:19
char displayMode[3][10]
Definition dc_webview.h:24
char * get()
Definition dc_webview.cpp:45
~DcWebview()
Definition dc_webview.h:37