1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QICONENGINEPLUGIN_H
5#define QICONENGINEPLUGIN_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13
14class QIconEngine;
15
16#define QIconEngineFactoryInterface_iid "org.qt-project.Qt.QIconEngineFactoryInterface"
17
18class Q_GUI_EXPORT QIconEnginePlugin : public QObject
19{
20 Q_OBJECT
21public:
22 QIconEnginePlugin(QObject *parent = nullptr);
23 ~QIconEnginePlugin();
24
25 virtual QIconEngine *create(const QString &filename = QString()) = 0;
26};
27
28QT_END_NAMESPACE
29
30#endif // QICONENGINEPLUGIN_H
31

source code of qtbase/src/gui/image/qiconengineplugin.h