semilimes mcu sdk 1.1.3 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
6 class FcQrScanner
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// selects the type of code to support. Allowed values
15 char mode[3][8] = {"auto","qrcode","barcode"};
16
17// Function: ~FcQrScanner
18
19// distructor of the class, frees up the memory occupied by the array/s
20
21// Prototype:
22// ~FcQrScanner()
23
24// Parameters:
25
26// Returns:
28 ~FcQrScanner()
29 {
30 delete[] json;
31 json = nullptr;
32 }
33
34// Function: FcQrScanner.set
35
36// A scanner button allowing to scan and read QR Codes
37
38// Prototype:
39// void FcQrScanner::set(const char* refname,const char* title,bool reqSel, const char* value,const char* actBtnTitle, const char* mode);
40
41// Parameters:
48
49// Returns:
51 void set(const char* refname,const char* title,bool reqSel, const char* value,const char* actBtnTitle, const char* mode);
52
53// Function: FcQrScanner.get
54
55// return the json script
56
57// Prototype:
58// void FcQrScanner::get();
59
60// Parameters:
61
62// Returns:
64 char* get();
65};
66
67#endif
FcQrScanner
Definition fc_qr_scanner.h:7
FcQrScanner::get
char * get()
Definition fc_qr_scanner.cpp:48
FcQrScanner::set
void set(const char *refname, const char *title, bool reqSel, const char *value, const char *actBtnTitle, const char *mode)
Definition fc_qr_scanner.cpp:21
FcQrScanner::~FcQrScanner
~FcQrScanner()
Definition fc_qr_scanner.h:28
FcQrScanner::mode
char mode[3][8]
Definition fc_qr_scanner.h:15