2018-11-23 01:58:51 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <optional>
|
2019-01-11 02:53:07 +00:00
|
|
|
#include "common/uuid.h"
|
2018-11-23 01:58:51 +00:00
|
|
|
|
|
|
|
namespace Core::Frontend {
|
|
|
|
|
|
|
|
class ProfileSelectApplet {
|
|
|
|
public:
|
|
|
|
virtual ~ProfileSelectApplet();
|
|
|
|
|
2019-01-11 02:53:07 +00:00
|
|
|
virtual void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const = 0;
|
2018-11-23 01:58:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DefaultProfileSelectApplet final : public ProfileSelectApplet {
|
|
|
|
public:
|
2019-01-11 02:53:07 +00:00
|
|
|
void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const override;
|
2018-11-23 01:58:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|