dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
notifypluginfactory.cpp
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 #include "notifypluginfactory.h"
30 //#include "notifypluginwidget.h"
31 #include "notifyplugin.h"
32 #include "notifypluginconfiguration.h"
34 #include <coreplugin/iuavgadget.h>
35 
37  : IUAVGadgetFactory(QString("Notify Plugin"), tr("Notify Plugin"), parent)
38 {
39 }
40 
42 
44 {
45  // NotifyPluginWidget* gadgetWidget = new NotifyPluginWidget(parent);
46  return nullptr; // new NotifyPlugin(QString("NotifyPlugin"), gadgetWidget,
47  // parent);
48 }
49 
50 IUAVGadgetConfiguration *NotifyPluginFactory::createConfiguration(const QByteArray &state)
51 {
52  return new NotifyPluginConfiguration(QString("Notify Plugin"), state);
53 }
54 
55 IOptionsPage *NotifyPluginFactory::createOptionsPage(IUAVGadgetConfiguration *config)
56 {
57  return new NotifyPluginOptionsPage(qobject_cast<NotifyPluginConfiguration *>(config));
58 }
IOptionsPage * createOptionsPage(IUAVGadgetConfiguration *config)
Notify Plugin options page header.
Core::IUAVGadget * createGadget(QWidget *parent)
IUAVGadgetConfiguration * createConfiguration(const QByteArray &state)
NotifyPluginFactory(QObject *parent=0)