1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1 as published by the Free Software Foundation
11
* and appearing in the file LICENSE.LGPL included in the packaging
15
#ifndef MALIITQUICKPLUGINFACTORY_H
16
#define MALIITQUICKPLUGINFACTORY_H
18
#include <maliit/plugins/abstractpluginfactory.h>
22
class MaliitQuickPluginFactory
23
: public QObject, public MImAbstractPluginFactory
26
Q_INTERFACES(MImAbstractPluginFactory)
27
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
28
Q_PLUGIN_METADATA(IID "org.maliit.qtquick.plugin.factory"
29
FILE "plugin-factory.json")
31
Q_DISABLE_COPY(MaliitQuickPluginFactory)
34
explicit MaliitQuickPluginFactory(QObject *parent = 0);
37
virtual ~MaliitQuickPluginFactory();
38
virtual QString fileExtension() const;
39
virtual Maliit::Plugins::InputMethodPlugin * create(const QString &file) const;
43
#endif // MALIITQUICKPLUGINFACTORY_H