semilimes mcu sdk
1.1.5
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
6
class
DcWebview
7
{
8
private
:
9
SmeJson json_data;
10
char
* json =
nullptr
;
11
12
public
:
13
// variable: DcWebview.viewSizeTypes
14
15
// describes the types of viewSize
17
char
viewSizeTypes
[4][4] = {
"1:1"
,
"1:2"
,
"3:2"
,
"2:1"
};
18
19
// variable: DcWebview.displayMode
20
21
// gives the choice to display the destination url in multiple modes (the default behaviour is link):
23
char
displayMode
[3][10] = {
"link"
,
"thumbnail"
,
"liveweb"
};
24
25
// Function: ~DcWebview
26
27
// distructor of the class, frees up the memory occupied by the array/s
28
29
// Prototype:
30
// ~DcWebview()
31
32
// Parameters:
33
34
// Returns:
36
~DcWebview
()
37
{
38
delete
[] json;
39
json =
nullptr
;
40
}
41
42
// Function: DcWebview.set
43
44
// A message referencing a webpage, to be viewed as a web frame
45
46
// Prototype:
47
// void DcWebview::set(const char* url, bool enableFullScreenView, const char* viewSize);
48
49
// Parameters:
55
// Returns:
57
void
set
(
const
char
* url,
bool
enableFullScreenView,
const
char
* viewSize,
const
char
*
displayMode
,
const
char
* linkDisplayName);
58
59
// Function: DcWebview.get
60
61
// return the json script
62
63
// Prototype:
64
// void DcWebview::get();
65
66
// Parameters:
67
68
// Returns:
70
char
*
get
();
71
};
72
73
#endif
DcWebview
Definition
dc_webview.h:7
DcWebview::viewSizeTypes
char viewSizeTypes[4][4]
Definition
dc_webview.h:17
DcWebview::displayMode
char displayMode[3][10]
Definition
dc_webview.h:23
DcWebview::set
void set(const char *url, bool enableFullScreenView, const char *viewSize, const char *displayMode, const char *linkDisplayName)
Definition
dc_webview.cpp:19
DcWebview::get
char * get()
Definition
dc_webview.cpp:45
DcWebview::~DcWebview
~DcWebview()
Definition
dc_webview.h:36
github
semilimes_mcu_sdk
src
components
dc_webview.h
Generated by
1.12.0