2022-04-23 20:49:07 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 15:15:37 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <optional>
|
|
|
|
#include "common/uuid.h"
|
|
|
|
|
|
|
|
namespace Core::Frontend {
|
|
|
|
|
|
|
|
class ProfileSelectApplet {
|
|
|
|
public:
|
|
|
|
virtual ~ProfileSelectApplet();
|
|
|
|
|
|
|
|
virtual void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DefaultProfileSelectApplet final : public ProfileSelectApplet {
|
|
|
|
public:
|
|
|
|
void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|