2016-05-03 03:57:28 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
2016-10-03 04:25:54 +05:30
|
|
|
#include <QStringList>
|
2016-05-03 03:57:28 +05:30
|
|
|
|
|
|
|
enum IconType : unsigned
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
Builtin,
|
|
|
|
Transient,
|
|
|
|
FileBased,
|
|
|
|
ICONS_TOTAL,
|
|
|
|
ToBeDeleted
|
2016-05-03 03:57:28 +05:30
|
|
|
};
|
|
|
|
|
2021-07-25 22:41:59 +05:30
|
|
|
class IIconList
|
2016-05-03 03:57:28 +05:30
|
|
|
{
|
|
|
|
public:
|
2018-07-15 18:21:05 +05:30
|
|
|
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;
|
2016-05-03 03:57:28 +05:30
|
|
|
};
|