diff options
Diffstat (limited to 'src/plugins/General/library/libraryfactory.h')
| -rw-r--r-- | src/plugins/General/library/libraryfactory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/General/library/libraryfactory.h b/src/plugins/General/library/libraryfactory.h index d9500bcbb..ce818b2a1 100644 --- a/src/plugins/General/library/libraryfactory.h +++ b/src/plugins/General/library/libraryfactory.h @@ -17,14 +17,18 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ + #ifndef LIBRARYFACTORY_H #define LIBRARYFACTORY_H #include <QObject> #include <QDialog> +#include <QPointer> #include <qmmpui/general.h> #include <qmmpui/generalfactory.h> +class LibraryWidget; + /** @author Ilya Kotov <forkotov02@ya.ru> */ @@ -36,9 +40,18 @@ Q_INTERFACES(GeneralFactory) public: GeneralProperties properties() const override; QObject *create(QObject *parent) override; + QWidget *createWidget(int id, QWidget *parent) override; QDialog *createConfigDialog(QWidget *parent) override; void showAbout(QWidget *parent) override; QString translation() const override; + +private: + enum WidgetType + { + LIBRARY_WIDGET = 0 + }; + + QPointer<LibraryWidget> m_libraryWidget; }; #endif // LIBRARYFACTORY_H |
