2016-05-02 23:27:28 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
2016-10-02 23:55:54 +01:00
|
|
|
#include <QStringList>
|
2016-05-03 16:49:56 +01:00
|
|
|
#include "multimc_logic_export.h"
|
2016-05-02 23:27:28 +01:00
|
|
|
|
|
|
|
enum IconType : unsigned
|
|
|
|
{
|
|
|
|
Builtin,
|
|
|
|
Transient,
|
|
|
|
FileBased,
|
|
|
|
ICONS_TOTAL,
|
|
|
|
ToBeDeleted
|
|
|
|
};
|
|
|
|
|
2016-05-03 16:49:56 +01:00
|
|
|
class MULTIMC_LOGIC_EXPORT IIconList
|
2016-05-02 23:27:28 +01:00
|
|
|
{
|
|
|
|
public:
|
2016-05-03 16:49:56 +01:00
|
|
|
virtual ~IIconList();
|
2016-10-02 23:55:54 +01:00
|
|
|
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;
|
2016-05-02 23:27:28 +01:00
|
|
|
};
|