qskinny/src/controls/QskSkinFactory.h

30 lines
767 B
C
Raw Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 16:21:34 +00:00
*****************************************************************************/
#ifndef QSK_SKIN_FACTORY_H
#define QSK_SKIN_FACTORY_H
#include "QskGlobal.h"
2018-07-19 12:10:48 +00:00
#include <qobject.h>
2017-07-21 16:21:34 +00:00
class QskSkin;
class QSK_EXPORT QskSkinFactory : public QObject
{
Q_OBJECT
2018-08-03 06:15:28 +00:00
public:
2017-07-21 16:21:34 +00:00
QskSkinFactory( QObject* parent = nullptr );
2018-07-31 15:32:25 +00:00
~QskSkinFactory() override;
2017-07-21 16:21:34 +00:00
virtual QStringList skinNames() const = 0;
virtual QskSkin* createSkin( const QString& skinName ) = 0;
};
#define QskSkinFactoryIID "org.qskinny.Qsk.QskSkinFactory/1.0"
Q_DECLARE_INTERFACE( QskSkinFactory, QskSkinFactoryIID )
2017-07-21 16:21:34 +00:00
#endif