GH-1559 Export IIconList from logic API
This commit is contained in:
parent
e1a530f84d
commit
898e3cd4e7
@ -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})
|
||||||
|
7
api/logic/icons/IIconList.cpp
Normal file
7
api/logic/icons/IIconList.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "IIconList.h"
|
||||||
|
|
||||||
|
// blargh
|
||||||
|
IIconList::~IIconList()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user