semilimes mcu sdk 1.1.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_qr_scanner.h
1#ifndef _fc_qr_scanner_
2#define _fc_qr_scanner_
3
4#include "../defines.h"
5
7{
8private:
9 #define headerSize 126
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// selects the type of code to support. Allowed values
16 char mode[3][8] = {"auto","qrcode","barcode"};
17
18// Function: ~FcQrScanner
19
20// distructor of the class, frees up the memory occupied by the array/s
21
22// Prototype:
23// ~FcQrScanner()
24
25// Parameters:
26
27// Returns:
30 {
31 delete[] json;
32 json = nullptr;
33 }
34
35// Function: FcQrScanner.set
36
37// A scanner button allowing to scan and read QR Codes
38
39// Prototype:
40// void FcQrScanner::set(char* refname,char* title,bool reqSel, char* value,char* actBtnTitle);
41
42// Parameters:
49
50// Returns:
52 void set(char* refname,char* title,bool reqSel, char* value,char* actBtnTitle, char* mode);
53
54// Function: FcQrScanner.get
55
56// return the json script
57
58// Prototype:
59// void FcQrScanner::get();
60
61// Parameters:
62
63// Returns:
65 char* get();
66};
67
68#endif
Definition fc_qr_scanner.h:7
void set(char *refname, char *title, bool reqSel, char *value, char *actBtnTitle, char *mode)
Definition fc_qr_scanner.cpp:21
char * get()
Definition fc_qr_scanner.cpp:48
~FcQrScanner()
Definition fc_qr_scanner.h:29
char mode[3][8]
Definition fc_qr_scanner.h:16