Files
UltimMC_Launcher/api/logic/minecraft/auth/AuthProviders.h
Max 167b6bd405 Dehardcode account providers (#38)
* Dehardcode account providers

* Fix crash on creation

* Add dynamic 'add account dialog' provider selector

* Fix typo and add newlines

* Rename loginType to provider

* Rename MojangAccount to Account and MojangAccountList to AccountList

* Fix json save error
2021-06-14 12:51:25 +03:00

23 lines
515 B
C++

#pragma once
#include <QObject>
#include "QObjectPtr.h"
#include <QDateTime>
#include <QSet>
#include <QProcess>
#include <QMap>
#include "providers/BaseAuthProvider.h"
#include "multimc_logic_export.h"
/*!
* \brief Namespace for auth providers.
* This class main putpose is to handle registration and lookup of auth providers
*/
namespace AuthProviders
{
MULTIMC_LOGIC_EXPORT void load();
MULTIMC_LOGIC_EXPORT AuthProviderPtr lookup(QString id);
MULTIMC_LOGIC_EXPORT QList<AuthProviderPtr> getAll();
}