mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 21:25:46 +00:00
frontend: Add base class and default impl of parent controls applet frontend
This commit is contained in:
parent
9d2d349d7b
commit
c96450f6e2
2 changed files with 52 additions and 1 deletions
|
@ -9,6 +9,28 @@
|
|||
|
||||
namespace Core::Frontend {
|
||||
|
||||
class ParentalControlsApplet {
|
||||
public:
|
||||
virtual ~ParentalControlsApplet();
|
||||
|
||||
virtual void VerifyPIN(std::function<void(bool)> finished,
|
||||
bool suspend_future_verification_temporarily) = 0;
|
||||
virtual void VerifyPINForSettings(std::function<void(bool)> finished) = 0;
|
||||
virtual void RegisterPIN(std::function<void()> finished) = 0;
|
||||
virtual void ChangePIN(std::function<void()> finished) = 0;
|
||||
};
|
||||
|
||||
class DefaultParentalControlsApplet final : public ParentalControlsApplet {
|
||||
public:
|
||||
~DefaultParentalControlsApplet() override;
|
||||
|
||||
void VerifyPIN(std::function<void(bool)> finished,
|
||||
bool suspend_future_verification_temporarily) override;
|
||||
void VerifyPINForSettings(std::function<void(bool)> finished) override;
|
||||
void RegisterPIN(std::function<void()> finished) override;
|
||||
void ChangePIN(std::function<void()> finished) override;
|
||||
};
|
||||
|
||||
class PhotoViewerApplet {
|
||||
public:
|
||||
virtual ~PhotoViewerApplet();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue