mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 21:15:19 +00:00
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
|
||||
)
|
||||
|
||||
# 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})
|
||||
|
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
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user