1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef CUSTOMICON_H
6#define CUSTOMICON_H
7
8#include <QFileIconProvider>
9
10class CustomIcons final
11{
12 CustomIcons() = delete;
13 Q_DISABLE_COPY(CustomIcons)
14public:
15 enum CustomIconType { Exe, Lib };
16 static QIcon icon(QFileIconProvider::IconType type);
17 static QIcon icon(CustomIconType type);
18 static QIcon icon(const QFileInfo &info);
19 static QString type(const QFileInfo &info);
20 static void setOptions(QFileIconProvider::Options options);
21 static QFileIconProvider::Options options();
22};
23
24#endif // CUSTOMICON_H
25