Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
SecurityLayer Class Referenceabstract

Abstract base class for individual security challenge layers. More...

#include <security_layer.h>

Inheritance diagram for SecurityLayer:
Collaboration diagram for SecurityLayer:

Signals

void layerCompleted ()
 Emitted when the user successfully completes the security challenge presented by this layer.
 
void layerFailed ()
 Emitted when the user fails the security challenge (e.g., incorrect code, timeout, collision). Note: Not all layers currently implement failure conditions that emit this signal.
 

Public Member Functions

virtual void Initialize ()=0
 Pure virtual function to initialize the security layer for display and interaction. Derived classes must implement this to set up their specific challenge state (e.g., load images, generate codes, start timers).
 
virtual void Reset ()=0
 Pure virtual function to reset the security layer to its initial, inactive state. Derived classes must implement this to clear inputs, reset progress, stop timers, etc.
 
 SecurityLayer (QWidget *parent=nullptr)
 Constructs a SecurityLayer.
 
 ~SecurityLayer () override=default
 Virtual destructor. Ensures proper cleanup for derived classes.
 

Detailed Description

Abstract base class for individual security challenge layers.

This class defines the common interface for different security verification steps (like fingerprint scan, typing test, etc.). Each derived class implements a specific challenge. It provides signals to indicate completion or failure of the challenge.

Constructor & Destructor Documentation

◆ SecurityLayer()

SecurityLayer::SecurityLayer ( QWidget * parent = nullptr)
inlineexplicit

Constructs a SecurityLayer.

Parameters
parentOptional parent widget.
Here is the caller graph for this function:

◆ ~SecurityLayer()

SecurityLayer::~SecurityLayer ( )
overridedefault

Virtual destructor. Ensures proper cleanup for derived classes.

Member Function Documentation

◆ Initialize()

virtual void SecurityLayer::Initialize ( )
pure virtual

Pure virtual function to initialize the security layer for display and interaction. Derived classes must implement this to set up their specific challenge state (e.g., load images, generate codes, start timers).

Implemented in FingerprintLayer, HandprintLayer, RetinaScanLayer, SecurityCodeLayer, SecurityQuestionLayer, SnakeGameLayer, TypingTestLayer, and VoiceRecognitionLayer.

◆ layerCompleted

void SecurityLayer::layerCompleted ( )
signal

Emitted when the user successfully completes the security challenge presented by this layer.

Here is the caller graph for this function:

◆ layerFailed

void SecurityLayer::layerFailed ( )
signal

Emitted when the user fails the security challenge (e.g., incorrect code, timeout, collision). Note: Not all layers currently implement failure conditions that emit this signal.

◆ Reset()

virtual void SecurityLayer::Reset ( )
pure virtual

Pure virtual function to reset the security layer to its initial, inactive state. Derived classes must implement this to clear inputs, reset progress, stop timers, etc.

Implemented in FingerprintLayer, HandprintLayer, RetinaScanLayer, SecurityCodeLayer, SecurityQuestionLayer, SnakeGameLayer, TypingTestLayer, and VoiceRecognitionLayer.


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