From 898e3cd4e7b524e4c1d9492f046f0520d61d1621 Mon Sep 17 00:00:00 2001 From: "Mrazek, Petr" Date: Tue, 3 May 2016 17:49:56 +0200 Subject: [PATCH] GH-1559 Export IIconList from logic API --- api/logic/CMakeLists.txt | 8 ++++++++ api/logic/icons/IIconList.cpp | 7 +++++++ api/logic/icons/IIconList.h | 5 +++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 api/logic/icons/IIconList.cpp 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 +#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; };