summaryrefslogtreecommitdiffstats
path: root/logic/auth
diff options
context:
space:
mode:
Diffstat (limited to 'logic/auth')
-rw-r--r--logic/auth/AuthSession.h4
-rw-r--r--logic/auth/MojangAccount.h5
-rw-r--r--logic/auth/MojangAccountList.h6
3 files changed, 11 insertions, 4 deletions
diff --git a/logic/auth/AuthSession.h b/logic/auth/AuthSession.h
index 2ac170fa..dede90a9 100644
--- a/logic/auth/AuthSession.h
+++ b/logic/auth/AuthSession.h
@@ -4,13 +4,15 @@
#include <QMultiMap>
#include <memory>
+#include "multimc_logic_export.h"
+
struct User
{
QString id;
QMultiMap<QString, QString> properties;
};
-struct AuthSession
+struct MULTIMC_LOGIC_EXPORT AuthSession
{
bool MakeOffline(QString offline_playername);
diff --git a/logic/auth/MojangAccount.h b/logic/auth/MojangAccount.h
index 47ebf91b..5cf8a0f2 100644
--- a/logic/auth/MojangAccount.h
+++ b/logic/auth/MojangAccount.h
@@ -25,6 +25,9 @@
#include <memory>
#include "AuthSession.h"
+#include "multimc_logic_export.h"
+MULTIMC_LOGIC_EXPORT
+
class Task;
class YggdrasilTask;
class MojangAccount;
@@ -58,7 +61,7 @@ enum AccountStatus
* Said information may include things such as that account's username, client token, and access
* token if the user chose to stay logged in.
*/
-class MojangAccount : public QObject
+class MULTIMC_LOGIC_EXPORT MojangAccount : public QObject
{
Q_OBJECT
public: /* construction */
diff --git a/logic/auth/MojangAccountList.h b/logic/auth/MojangAccountList.h
index b68343f2..49b71fab 100644
--- a/logic/auth/MojangAccountList.h
+++ b/logic/auth/MojangAccountList.h
@@ -22,6 +22,8 @@
#include "auth/MojangAccount.h"
+#include "multimc_logic_export.h"
+
/*!
* \brief List of available Mojang accounts.
* This should be loaded in the background by MultiMC on startup.
@@ -31,7 +33,7 @@
* all have a default implementation, but they can be overridden by subclasses to
* change the behavior of the list.
*/
-class MojangAccountList : public QAbstractListModel
+class MULTIMC_LOGIC_EXPORT MojangAccountList : public QAbstractListModel
{
Q_OBJECT
public:
@@ -126,7 +128,7 @@ public:
* If the username given is an empty string, sets the active account to nothing.
*/
virtual void setActiveAccount(const QString &username);
-
+
/*!
* Returns true if any of the account is at least Validated
*/