MidlePayQml 0.0.4
MiddlePay QML module
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
qrcodegen::QrCode Class Referencefinal

#include <qrcodegen.hpp>

Public Types

enum class  Ecc { LOW = 0 , MEDIUM , QUARTILE , HIGH }
 

Public Member Functions

 QrCode (int ver, Ecc ecl, const std::vector< std::uint8_t > &dataCodewords, int msk)
 
int getVersion () const
 
int getSize () const
 
Ecc getErrorCorrectionLevel () const
 
int getMask () const
 
bool getModule (int x, int y) const
 

Static Public Member Functions

static QrCode encodeText (const char *text, Ecc ecl)
 
static QrCode encodeBinary (const std::vector< std::uint8_t > &data, Ecc ecl)
 
static QrCode encodeSegments (const std::vector< QrSegment > &segs, Ecc ecl, int minVersion=1, int maxVersion=40, int mask=-1, bool boostEcl=true)
 

Static Public Attributes

static constexpr int MIN_VERSION = 1
 
static constexpr int MAX_VERSION = 40
 

Member Enumeration Documentation

◆ Ecc

Enumerator
LOW 
MEDIUM 
QUARTILE 
HIGH 

Constructor & Destructor Documentation

◆ QrCode()

qrcodegen::QrCode::QrCode ( int  ver,
Ecc  ecl,
const std::vector< std::uint8_t > &  dataCodewords,
int  msk 
)

Member Function Documentation

◆ encodeBinary()

static QrCode qrcodegen::QrCode::encodeBinary ( const std::vector< std::uint8_t > &  data,
Ecc  ecl 
)
static

◆ encodeSegments()

static QrCode qrcodegen::QrCode::encodeSegments ( const std::vector< QrSegment > &  segs,
Ecc  ecl,
int  minVersion = 1,
int  maxVersion = 40,
int  mask = -1,
bool  boostEcl = true 
)
static

◆ encodeText()

static QrCode qrcodegen::QrCode::encodeText ( const char *  text,
Ecc  ecl 
)
static

◆ getErrorCorrectionLevel()

Ecc qrcodegen::QrCode::getErrorCorrectionLevel ( ) const

◆ getMask()

int qrcodegen::QrCode::getMask ( ) const

◆ getModule()

bool qrcodegen::QrCode::getModule ( int  x,
int  y 
) const

◆ getSize()

int qrcodegen::QrCode::getSize ( ) const

◆ getVersion()

int qrcodegen::QrCode::getVersion ( ) const

Member Data Documentation

◆ MAX_VERSION

constexpr int qrcodegen::QrCode::MAX_VERSION = 40
staticconstexpr

◆ MIN_VERSION

constexpr int qrcodegen::QrCode::MIN_VERSION = 1
staticconstexpr

The documentation for this class was generated from the following file: