Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
SecurityCodeLayer::SecurityCode Struct Reference

Structure representing a security code and its associated hint. More...

Collaboration diagram for SecurityCodeLayer::SecurityCode:

Public Member Functions

 SecurityCode (const QString &c, const QString &h, const bool num=true)
 Constructs a SecurityCode entry.
 

Public Attributes

QString code
 The 4-character security code (can be digits or letters).
 
QString hint
 A hint related to the security code.
 
bool is_numeric
 Flag indicating if the code consists only of digits.
 

Detailed Description

Structure representing a security code and its associated hint.

Constructor & Destructor Documentation

◆ SecurityCode()

SecurityCodeLayer::SecurityCode::SecurityCode ( const QString & c,
const QString & h,
const bool num = true )
inline

Constructs a SecurityCode entry.

Parameters
cThe code string.
hThe hint string.
numTrue if the code is numeric only, false otherwise (defaults to true).

Member Data Documentation

◆ code

QString SecurityCodeLayer::SecurityCode::code

The 4-character security code (can be digits or letters).

◆ hint

QString SecurityCodeLayer::SecurityCode::hint

A hint related to the security code.

◆ is_numeric

bool SecurityCodeLayer::SecurityCode::is_numeric

Flag indicating if the code consists only of digits.


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