summaryrefslogtreecommitdiff
path: root/src/core/frontend/applets/general.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/frontend/applets/general.cpp')
-rw-r--r--src/core/frontend/applets/general.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/core/frontend/applets/general.cpp b/src/core/frontend/applets/general.cpp
new file mode 100644
index 000000000..4c299ee9c
--- /dev/null
+++ b/src/core/frontend/applets/general.cpp
@@ -0,0 +1,59 @@
1// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "common/logging/log.h"
5#include "core/frontend/applets/general.h"
6
7namespace Core::Frontend {
8
9ParentalControlsApplet::~ParentalControlsApplet() = default;
10
11DefaultParentalControlsApplet::~DefaultParentalControlsApplet() = default;
12
13void DefaultParentalControlsApplet::Close() const {}
14
15void DefaultParentalControlsApplet::VerifyPIN(std::function<void(bool)> finished,
16 bool suspend_future_verification_temporarily) {
17 LOG_INFO(Service_AM,
18 "Application requested frontend to verify PIN (normal), "
19 "suspend_future_verification_temporarily={}, verifying as correct.",
20 suspend_future_verification_temporarily);
21 finished(true);
22}
23
24void DefaultParentalControlsApplet::VerifyPINForSettings(std::function<void(bool)> finished) {
25 LOG_INFO(Service_AM,
26 "Application requested frontend to verify PIN (settings), verifying as correct.");
27 finished(true);
28}
29
30void DefaultParentalControlsApplet::RegisterPIN(std::function<void()> finished) {
31 LOG_INFO(Service_AM, "Application requested frontend to register new PIN");
32 finished();
33}
34
35void DefaultParentalControlsApplet::ChangePIN(std::function<void()> finished) {
36 LOG_INFO(Service_AM, "Application requested frontend to change PIN to new value");
37 finished();
38}
39
40PhotoViewerApplet::~PhotoViewerApplet() = default;
41
42DefaultPhotoViewerApplet::~DefaultPhotoViewerApplet() = default;
43
44void DefaultPhotoViewerApplet::Close() const {}
45
46void DefaultPhotoViewerApplet::ShowPhotosForApplication(u64 title_id,
47 std::function<void()> finished) const {
48 LOG_INFO(Service_AM,
49 "Application requested frontend to display stored photos for title_id={:016X}",
50 title_id);
51 finished();
52}
53
54void DefaultPhotoViewerApplet::ShowAllPhotos(std::function<void()> finished) const {
55 LOG_INFO(Service_AM, "Application requested frontend to display all stored photos.");
56 finished();
57}
58
59} // namespace Core::Frontend