2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2022-02-28 05:18:37 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
namespace Core::Frontend {
|
|
|
|
|
2022-03-17 07:01:03 +00:00
|
|
|
class MiiEditApplet {
|
2022-02-28 05:18:37 +00:00
|
|
|
public:
|
2022-12-05 23:52:52 +00:00
|
|
|
using MiiEditCallback = std::function<void()>;
|
|
|
|
|
2022-03-17 07:01:03 +00:00
|
|
|
virtual ~MiiEditApplet();
|
2022-02-28 05:18:37 +00:00
|
|
|
|
2022-12-05 23:52:52 +00:00
|
|
|
virtual void ShowMiiEdit(const MiiEditCallback& callback) const = 0;
|
2022-02-28 05:18:37 +00:00
|
|
|
};
|
|
|
|
|
2022-03-17 07:01:03 +00:00
|
|
|
class DefaultMiiEditApplet final : public MiiEditApplet {
|
2022-02-28 05:18:37 +00:00
|
|
|
public:
|
2022-12-05 23:52:52 +00:00
|
|
|
void ShowMiiEdit(const MiiEditCallback& callback) const override;
|
2022-02-28 05:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|