summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
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;
};