qskinny/src/controls/QskSkinFactory.h

30 lines
799 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_SKIN_FACTORY_H
#define QSK_SKIN_FACTORY_H
#include "QskGlobal.h"
2018-07-19 14:10:48 +02:00
#include <qobject.h>
2017-07-21 18:21:34 +02:00
class QskSkin;
class QSK_EXPORT QskSkinFactory : public QObject
{
Q_OBJECT
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskSkinFactory( QObject* parent = nullptr );
2018-07-31 17:32:25 +02:00
~QskSkinFactory() override;
2017-07-21 18:21:34 +02: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 18:21:34 +02:00
#endif