Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
security_layer.h
Go to the documentation of this file.
1#ifndef SECURITY_LAYER_H
2#define SECURITY_LAYER_H
3
4#include <QWidget>
5
13class SecurityLayer : public QWidget {
14 Q_OBJECT
15public:
20 explicit SecurityLayer(QWidget *parent = nullptr) : QWidget(parent) {}
21
25 ~SecurityLayer() override = default;
26
32 virtual void Initialize() = 0;
33
38 virtual void Reset() = 0;
39
40 signals:
45
51};
52
53#endif // SECURITY_LAYER_H
virtual void Initialize()=0
Pure virtual function to initialize the security layer for display and interaction....
virtual void Reset()=0
Pure virtual function to reset the security layer to its initial, inactive state. Derived classes mus...
~SecurityLayer() override=default
Virtual destructor. Ensures proper cleanup for derived classes.
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,...
SecurityLayer(QWidget *parent=nullptr)
Constructs a SecurityLayer.
Definition security_layer.h:20