summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMrazek, Petr <petr.mrazek@acision.com>2016-05-03 17:49:56 +0200
committerMrazek, Petr <petr.mrazek@acision.com>2016-05-03 17:49:56 +0200
commit898e3cd4e7b524e4c1d9492f046f0520d61d1621 (patch)
tree0652b14e63d597f909c4921907653710e81d9ece /api
parente1a530f84dce9b4c1b262669157359fbbd436428 (diff)
downloadMultiMC-898e3cd4e7b524e4c1d9492f046f0520d61d1621.tar
MultiMC-898e3cd4e7b524e4c1d9492f046f0520d61d1621.tar.gz
MultiMC-898e3cd4e7b524e4c1d9492f046f0520d61d1621.tar.lz
MultiMC-898e3cd4e7b524e4c1d9492f046f0520d61d1621.tar.xz
MultiMC-898e3cd4e7b524e4c1d9492f046f0520d61d1621.zip
GH-1559 Export IIconList from logic API
Diffstat (limited to 'api')
-rw-r--r--api/logic/CMakeLists.txt8
-rw-r--r--api/logic/icons/IIconList.cpp7
-rw-r--r--api/logic/icons/IIconList.h5
3 files changed, 18 insertions, 2 deletions
diff --git a/api/logic/CMakeLists.txt b/api/logic/CMakeLists.txt
index b534f970..32f5fd12 100644
--- a/api/logic/CMakeLists.txt
+++ b/api/logic/CMakeLists.txt
@@ -157,6 +157,13 @@ set(NEWS_SOURCES
news/NewsEntry.cpp
)
+# Icon interface
+set(ICONS_SOURCES
+ # News System
+ icons/IIconList.h
+ icons/IIconList.cpp
+)
+
# Minecraft services status checker
set(STATUS_SOURCES
# Status system
@@ -433,6 +440,7 @@ set(LOGIC_SOURCES
${TRANSLATIONS_SOURCES}
${TOOLS_SOURCES}
${WONKO_SOURCES}
+ ${ICONS_SOURCES}
)
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
diff --git a/api/logic/icons/IIconList.cpp b/api/logic/icons/IIconList.cpp
new file mode 100644
index 00000000..b3a8fb43
--- /dev/null
+++ b/api/logic/icons/IIconList.cpp
@@ -0,0 +1,7 @@
+#include "IIconList.h"
+
+// blargh
+IIconList::~IIconList()
+{
+}
+
diff --git a/api/logic/icons/IIconList.h b/api/logic/icons/IIconList.h
index a7e0fa07..ec94cb35 100644
--- a/api/logic/icons/IIconList.h
+++ b/api/logic/icons/IIconList.h
@@ -1,6 +1,7 @@
#pragma once
#include <QString>
+#include "multimc_logic_export.h"
enum IconType : unsigned
{
@@ -11,10 +12,10 @@ enum IconType : unsigned
ToBeDeleted
};
-class IIconList
+class MULTIMC_LOGIC_EXPORT IIconList
{
public:
- virtual ~IIconList(){}
+ virtual ~IIconList();
virtual bool addIcon(QString key, QString name, QString path, IconType type) = 0;
};