1#ifndef FINGERPRINT_LAYER_H
2#define FINGERPRINT_LAYER_H
49 void Reset()
override;
81 bool eventFilter(QObject *obj, QEvent *event)
override;
QProgressBar * fingerprint_progress_
Progress bar indicating the scan progress.
Definition fingerprint_layer.h:94
QSvgRenderer * svg_renderer_
Renderer used to load and draw SVG fingerprint images.
Definition fingerprint_layer.h:98
~FingerprintLayer() override
Destructor. Stops and deletes the progress timer and the SVG renderer.
Definition fingerprint_layer.cpp:77
void UpdateFingerprintScan(int progress_value) const
Updates the visual appearance of the fingerprint image during the scan. Renders the SVG and applies a...
Definition fingerprint_layer.cpp:247
QTimer * fingerprint_timer_
Timer controlling the progress update while the mouse button is held.
Definition fingerprint_layer.h:96
QLabel * fingerprint_image_
Label displaying the fingerprint image.
Definition fingerprint_layer.h:92
void LoadRandomFingerprint()
Loads a random fingerprint SVG file from fingerprint_files_ and renders it into base_fingerprint_....
Definition fingerprint_layer.cpp:126
void ProcessFingerprint(bool completed)
Handles the completion of the fingerprint scan. Changes the UI element styles (border,...
Definition fingerprint_layer.cpp:193
void Initialize() override
Initializes the layer for display. Resets the progress bar and styles, loads a random fingerprint ima...
Definition fingerprint_layer.cpp:90
FingerprintLayer(QWidget *parent=nullptr)
Constructs a FingerprintLayer. Initializes the UI elements (title, fingerprint image label,...
Definition fingerprint_layer.cpp:16
void UpdateProgress()
Slot called periodically by fingerprint_timer_ when the user is holding the mouse button....
Definition fingerprint_layer.cpp:179
QString current_fingerprint_
Path to the currently loaded fingerprint SVG file.
Definition fingerprint_layer.h:104
QImage base_fingerprint_
The base image of the fingerprint (rendered SVG in gray).
Definition fingerprint_layer.h:100
void Reset() override
Resets the layer to its initial state. Stops the progress timer, resets the progress bar value and st...
Definition fingerprint_layer.cpp:98
bool eventFilter(QObject *obj, QEvent *event) override
Filters mouse press and release events on the fingerprint_image_ label. Starts the fingerprint_timer_...
Definition fingerprint_layer.cpp:276
QStringList fingerprint_files_
List of paths to available fingerprint SVG files.
Definition fingerprint_layer.h:102
SecurityLayer(QWidget *parent=nullptr)
Constructs a SecurityLayer.
Definition security_layer.h:20