NOISSUE make shared logic library ... shared

This commit is contained in:
Petr Mrázek
2015-09-05 18:46:57 +02:00
parent cd108fd029
commit 23d0bd8edd
76 changed files with 259 additions and 116 deletions

View File

@ -19,8 +19,10 @@
#include <QVariant>
#include <QIODevice>
#include "multimc_logic_export.h"
// Sectionless INI parser (for instance config files)
class INIFile : public QMap<QString, QVariant>
class MULTIMC_LOGIC_EXPORT INIFile : public QMap<QString, QVariant>
{
public:
explicit INIFile();

View File

@ -21,10 +21,12 @@
#include "settings/SettingsObject.h"
#include "multimc_logic_export.h"
/*!
* \brief A settings object that stores its settings in an INIFile.
*/
class INISettingsObject : public SettingsObject
class MULTIMC_LOGIC_EXPORT INISettingsObject : public SettingsObject
{
Q_OBJECT
public:

View File

@ -20,21 +20,23 @@
#include <QStringList>
#include <memory>
#include "multimc_logic_export.h"
class SettingsObject;
/*!
*
*/
class Setting : public QObject
class MULTIMC_LOGIC_EXPORT Setting : public QObject
{
Q_OBJECT
public:
/**
* Construct a Setting
*
*
* Synonyms are all the possible names used in the settings object, in order of preference.
* First synonym is the ID, which identifies the setting in MultiMC.
*
*
* defVal is the default value that will be returned when the settings object
* doesn't have any value for this setting.
*/

View File

@ -21,6 +21,8 @@
#include <QVariant>
#include <memory>
#include "multimc_logic_export.h"
class Setting;
class SettingsObject;
@ -38,7 +40,7 @@ typedef std::shared_ptr<SettingsObject> SettingsObjectPtr;
*
* \sa Setting
*/
class SettingsObject : public QObject
class MULTIMC_LOGIC_EXPORT SettingsObject : public QObject
{
Q_OBJECT
public: