2018-01-16 21:32:59 -05:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
2018-08-08 08:26:42 -04:00
|
|
|
#include "profile_manager.h"
|
2018-01-16 21:32:59 -05:00
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::Account {
|
2018-01-16 21:32:59 -05:00
|
|
|
|
2018-04-10 03:18:52 -04:00
|
|
|
class Module final {
|
|
|
|
public:
|
|
|
|
class Interface : public ServiceFramework<Interface> {
|
|
|
|
public:
|
2018-07-19 12:05:48 -04:00
|
|
|
explicit Interface(std::shared_ptr<Module> module, const char* name);
|
2018-04-10 03:18:52 -04:00
|
|
|
|
2018-08-07 22:39:12 -04:00
|
|
|
void GetUserCount(Kernel::HLERequestContext& ctx);
|
2018-04-10 03:18:52 -04:00
|
|
|
void GetUserExistence(Kernel::HLERequestContext& ctx);
|
|
|
|
void ListAllUsers(Kernel::HLERequestContext& ctx);
|
|
|
|
void ListOpenUsers(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetLastOpenedUser(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetProfile(Kernel::HLERequestContext& ctx);
|
|
|
|
void InitializeApplicationInfo(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx);
|
2018-08-10 20:33:11 -04:00
|
|
|
void IsUserRegistrationRequestPermitted(Kernel::HLERequestContext& ctx);
|
2018-04-10 03:18:52 -04:00
|
|
|
|
2018-08-08 08:26:42 -04:00
|
|
|
private:
|
|
|
|
std::unique_ptr<ProfileManager> profile_manager{};
|
|
|
|
|
2018-04-10 03:18:52 -04:00
|
|
|
protected:
|
|
|
|
std::shared_ptr<Module> module;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-01-16 21:32:59 -05:00
|
|
|
/// Registers all ACC services with the specified service manager.
|
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::Account
|