diff options
Diffstat (limited to 'src/core/frontend/applets/general.cpp')
| -rw-r--r-- | src/core/frontend/applets/general.cpp | 59 |
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 | |||
| 7 | namespace Core::Frontend { | ||
| 8 | |||
| 9 | ParentalControlsApplet::~ParentalControlsApplet() = default; | ||
| 10 | |||
| 11 | DefaultParentalControlsApplet::~DefaultParentalControlsApplet() = default; | ||
| 12 | |||
| 13 | void DefaultParentalControlsApplet::Close() const {} | ||
| 14 | |||
| 15 | void 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 | |||
| 24 | void 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 | |||
| 30 | void DefaultParentalControlsApplet::RegisterPIN(std::function<void()> finished) { | ||
| 31 | LOG_INFO(Service_AM, "Application requested frontend to register new PIN"); | ||
| 32 | finished(); | ||
| 33 | } | ||
| 34 | |||
| 35 | void DefaultParentalControlsApplet::ChangePIN(std::function<void()> finished) { | ||
| 36 | LOG_INFO(Service_AM, "Application requested frontend to change PIN to new value"); | ||
| 37 | finished(); | ||
| 38 | } | ||
| 39 | |||
| 40 | PhotoViewerApplet::~PhotoViewerApplet() = default; | ||
| 41 | |||
| 42 | DefaultPhotoViewerApplet::~DefaultPhotoViewerApplet() = default; | ||
| 43 | |||
| 44 | void DefaultPhotoViewerApplet::Close() const {} | ||
| 45 | |||
| 46 | void 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 | |||
| 54 | void 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 | ||