GH-1559 Export IIconList from logic API

This commit is contained in:
Mrazek, Petr 2016-05-03 17:49:56 +02:00
parent e1a530f84d
commit 898e3cd4e7
3 changed files with 18 additions and 2 deletions

View File

@ -157,6 +157,13 @@ set(NEWS_SOURCES
news/NewsEntry.cpp news/NewsEntry.cpp
) )
# Icon interface
set(ICONS_SOURCES
# News System
icons/IIconList.h
icons/IIconList.cpp
)
# Minecraft services status checker # Minecraft services status checker
set(STATUS_SOURCES set(STATUS_SOURCES
# Status system # Status system
@ -433,6 +440,7 @@ set(LOGIC_SOURCES
${TRANSLATIONS_SOURCES} ${TRANSLATIONS_SOURCES}
${TOOLS_SOURCES} ${TOOLS_SOURCES}
${WONKO_SOURCES} ${WONKO_SOURCES}
${ICONS_SOURCES}
) )
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES}) add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})

View File

@ -0,0 +1,7 @@
#include "IIconList.h"
// blargh
IIconList::~IIconList()
{
}

View File

@ -1,6 +1,7 @@
#pragma once #pragma once
#include <QString> #include <QString>
#include "multimc_logic_export.h"
enum IconType : unsigned enum IconType : unsigned
{ {
@ -11,10 +12,10 @@ enum IconType : unsigned
ToBeDeleted ToBeDeleted
}; };
class IIconList class MULTIMC_LOGIC_EXPORT IIconList
{ {
public: public:
virtual ~IIconList(){} virtual ~IIconList();
virtual bool addIcon(QString key, QString name, QString path, IconType type) = 0; virtual bool addIcon(QString key, QString name, QString path, IconType type) = 0;
}; };