Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
c96450f6
There was an error fetching the commit references. Please try again later.
Commit
c96450f6
authored
5 years ago
by
Zach Hilman
Browse files
Options
Downloads
Patches
Plain Diff
frontend: Add base class and default impl of parent controls applet frontend
parent
9d2d349d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/frontend/applets/general_frontend.cpp
+30
-1
30 additions, 1 deletion
src/core/frontend/applets/general_frontend.cpp
src/core/frontend/applets/general_frontend.h
+22
-0
22 additions, 0 deletions
src/core/frontend/applets/general_frontend.h
with
52 additions
and
1 deletion
src/core/frontend/applets/general_frontend.cpp
+
30
−
1
View file @
c96450f6
...
...
@@ -7,9 +7,38 @@
namespace
Core
::
Frontend
{
ParentalControlsApplet
::~
ParentalControlsApplet
()
=
default
;
DefaultParentalControlsApplet
::~
DefaultParentalControlsApplet
()
=
default
;
void
DefaultParentalControlsApplet
::
VerifyPIN
(
std
::
function
<
void
(
bool
)
>
finished
,
bool
suspend_future_verification_temporarily
)
{
LOG_INFO
(
Service_AM
,
"Application requested frontend to verify PIN (normal), "
"suspend_future_verification_temporarily={}, verifying as correct."
,
suspend_future_verification_temporarily
);
finished
(
true
);
}
void
DefaultParentalControlsApplet
::
VerifyPINForSettings
(
std
::
function
<
void
(
bool
)
>
finished
)
{
LOG_INFO
(
Service_AM
,
"Application requested frontend to verify PIN (settings), verifying as correct."
);
finished
(
true
);
}
void
DefaultParentalControlsApplet
::
RegisterPIN
(
std
::
function
<
void
()
>
finished
)
{
LOG_INFO
(
Service_AM
,
"Application requested frontend to register new PIN"
);
finished
();
}
void
DefaultParentalControlsApplet
::
ChangePIN
(
std
::
function
<
void
()
>
finished
)
{
LOG_INFO
(
Service_AM
,
"Application requested frontend to change PIN to new value"
);
finished
();
}
PhotoViewerApplet
::~
PhotoViewerApplet
()
=
default
;
DefaultPhotoViewerApplet
::~
DefaultPhotoViewerApplet
()
{}
DefaultPhotoViewerApplet
::~
DefaultPhotoViewerApplet
()
=
default
;
void
DefaultPhotoViewerApplet
::
ShowPhotosForApplication
(
u64
title_id
,
std
::
function
<
void
()
>
finished
)
const
{
...
...
This diff is collapsed.
Click to expand it.
src/core/frontend/applets/general_frontend.h
+
22
−
0
View file @
c96450f6
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment