1#ifndef H_EXTENSIONS_CUTEHMI_LOCKSCREEN_2_INCLUDE_CUTEHMI_LOCKSCREEN_GATEKEEPER_HPP
2#define H_EXTENSIONS_CUTEHMI_LOCKSCREEN_2_INCLUDE_CUTEHMI_LOCKSCREEN_GATEKEEPER_HPP
4#include "internal/common.hpp"
6#include <cutehmi/Singleton.hpp>
19 friend class test_Gatekeeper;
22 static constexpr
int INITIAL_HASHES_MIN = 9000;
23 static constexpr
int INITIAL_HASHES_MAX = 10000;
25 Q_PROPERTY(
int hashesLow READ hashesLow WRITE setHashesLow NOTIFY hashesLowChanged)
27 Q_PROPERTY(
int hashesHigh READ hashesHigh WRITE setHashesHigh NOTIFY hashesHighChanged)
29 Q_PROPERTY(
QString password READ password WRITE setPassword NOTIFY passwordChanged)
31 Q_PROPERTY(
QByteArray secret READ secret WRITE setSecret NOTIFY secretChanged)
35 int hashesLow() const;
37 void setHashesLow(
int low);
39 int hashesHigh() const;
41 void setHashesHigh(
int high);
45 void setPassword(const
QString & password);
51 Q_INVOKABLE virtual
bool authenticate() const;
56 void hashesLowChanged();
58 void hashesHighChanged();
60 void passwordChanged();
67 int pickNumberOfHashes() const;
Definition: Gatekeeper.hpp:15