NCL Composer  0.1.5
 All Classes Functions Variables Pages
qnlycomposerpluginfactory.h
1 /*
2  * Copyright 2011 TeleMidia/PUC-Rio.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see
16  * <http://www.gnu.org/licenses/>.
17  */
18 #ifndef QNLYCOMPOSERPLUGINFACTORY_H
19 #define QNLYCOMPOSERPLUGINFACTORY_H
20 
21 #include <core/extensions/IPluginFactory.h>
22 using namespace composer::extension;
23 
24 #include "qnlycomposerplugin.h"
25 
26 class QnlyComposerPluginFactory : public QObject, public IPluginFactory
27 {
28  Q_OBJECT
29  Q_INTERFACES(IPluginFactory)
30 
31 public:
32  QnlyComposerPluginFactory(QObject* parent = 0);
33 
35 
36  IPlugin* createPluginInstance();
37 
38  void releasePluginInstance(IPlugin *);
39 
40  QString id() const;
41 
42  QString name() const;
43 
49  QString version() { return NCLCOMPOSER_PLUGINS_VERSION; }
56  QString compatVersion() {return "0.1";}
62  QString vendor() {return "Telemidia Lab";}
68  QString copyright() {return "Telemidia/PUC-Rio";}
75  QString license() {return "LGPL";}
76 
82  QString description() {return tr("Layout View enable the user to edit the "
83  "NCL regions visually.");}
84 
85  QString url() {return "http://composer.telemidia.puc-rio.br/debug";}
86 
87  QString category() {return "NCL";}
88 };
89 
90 #endif // QNLYCOMPOSERPLUGINFACTORY_H