From 23d0bd8edde6aadfaa282215b5f143ad16210438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 5 Sep 2015 18:46:57 +0200 Subject: NOISSUE make shared logic library ... shared --- logic/auth/AuthSession.h | 4 +++- logic/auth/MojangAccount.h | 5 ++++- logic/auth/MojangAccountList.h | 6 ++++-- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'logic/auth') 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 #include +#include "multimc_logic_export.h" + struct User { QString id; QMultiMap 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 #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 */ -- cgit v1.2.3