MultiMC5/api/logic/icons/IIconList.h

27 lines
743 B
C
Raw Normal View History

#pragma once
#include <QString>
2016-10-02 22:55:54 +00:00
#include <QStringList>
#include "multimc_logic_export.h"
enum IconType : unsigned
{
2018-07-15 12:51:05 +00:00
Builtin,
Transient,
FileBased,
ICONS_TOTAL,
ToBeDeleted
};
class MULTIMC_LOGIC_EXPORT IIconList
{
public:
2018-07-15 12:51:05 +00:00
virtual ~IIconList();
virtual bool addIcon(const QString &key, const QString &name, const QString &path, const IconType type) = 0;
virtual bool deleteIcon(const QString &key) = 0;
virtual void saveIcon(const QString &key, const QString &path, const char * format) const = 0;
virtual bool iconFileExists(const QString &key) const = 0;
virtual void installIcons(const QStringList &iconFiles) = 0;
virtual void installIcon(const QString &file, const QString &name) = 0;
};