NOISSUE make shared logic library ... shared
This commit is contained in:
@ -16,8 +16,10 @@
|
||||
#pragma once
|
||||
#include "NetAction.h"
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
typedef std::shared_ptr<class ByteArrayDownload> ByteArrayDownloadPtr;
|
||||
class ByteArrayDownload : public NetAction
|
||||
class MULTIMC_LOGIC_EXPORT ByteArrayDownload : public NetAction
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -20,19 +20,22 @@
|
||||
#include <QCryptographicHash>
|
||||
#include <QSaveFile>
|
||||
|
||||
class INetworkValidator
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
/* FIXME: move to its own file(s) */
|
||||
class MULTIMC_LOGIC_EXPORT INetworkValidator
|
||||
{
|
||||
public:
|
||||
virtual ~INetworkValidator() {}
|
||||
|
||||
virtual void validate(const QByteArray &data) = 0;
|
||||
};
|
||||
class JsonValidator : public INetworkValidator
|
||||
class MULTIMC_LOGIC_EXPORT JsonValidator : public INetworkValidator
|
||||
{
|
||||
public:
|
||||
void validate(const QByteArray &data) override;
|
||||
};
|
||||
class MD5HashValidator : public INetworkValidator
|
||||
class MULTIMC_LOGIC_EXPORT MD5HashValidator : public INetworkValidator
|
||||
{
|
||||
public:
|
||||
explicit MD5HashValidator(const QByteArray &expected)
|
||||
@ -44,7 +47,7 @@ private:
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<class CacheDownload> CacheDownloadPtr;
|
||||
class CacheDownload : public NetAction
|
||||
class MULTIMC_LOGIC_EXPORT CacheDownload : public NetAction
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
|
@ -19,9 +19,11 @@
|
||||
#include <qtimer.h>
|
||||
#include <memory>
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
class HttpMetaCache;
|
||||
|
||||
struct MetaEntry
|
||||
struct MULTIMC_LOGIC_EXPORT MetaEntry
|
||||
{
|
||||
QString base;
|
||||
QString path;
|
||||
@ -35,7 +37,7 @@ struct MetaEntry
|
||||
|
||||
typedef std::shared_ptr<MetaEntry> MetaEntryPtr;
|
||||
|
||||
class HttpMetaCache : public QObject
|
||||
class MULTIMC_LOGIC_EXPORT HttpMetaCache : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -24,10 +24,12 @@
|
||||
#include "tasks/Task.h"
|
||||
#include "QObjectPtr.h"
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
class NetJob;
|
||||
typedef QObjectPtr<NetJob> NetJobPtr;
|
||||
|
||||
class NetJob : public Task
|
||||
class MULTIMC_LOGIC_EXPORT NetJob : public Task
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -4,7 +4,9 @@
|
||||
#include <QNetworkReply>
|
||||
#include <memory>
|
||||
|
||||
class PasteUpload : public Task
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
class MULTIMC_LOGIC_EXPORT PasteUpload : public Task
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
namespace URLConstants
|
||||
{
|
||||
extern const QString AWS_DOWNLOAD_BASE;
|
||||
@ -26,7 +28,7 @@ extern const QString AWS_DOWNLOAD_INDEXES;
|
||||
extern const QString ASSETS_BASE;
|
||||
extern const QString RESOURCE_BASE;
|
||||
extern const QString LIBRARY_BASE;
|
||||
extern const QString SKINS_BASE;
|
||||
MULTIMC_LOGIC_EXPORT extern const QString SKINS_BASE;
|
||||
extern const QString AUTH_BASE;
|
||||
extern const QString FORGE_LEGACY_URL;
|
||||
extern const QString FORGE_GRADLE_URL;
|
||||
|
Reference in New Issue
Block a user