NCL Composer  0.1.5
 All Classes Functions Variables Pages
DebugConsoleFactory.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 DEBUGCONSOLE_H
19 #define DEBUGCONSOLE_H
20 
21 #include "DebugConsole_global.h"
22 #include "DebugConsolePlugin.h"
23 
24 #include <core/extensions/IPluginFactory.h>
25 using namespace composer::extension;
26 
30 class DebugConsoleFactory : public QObject,
31  public IPluginFactory
32 {
33  Q_OBJECT
34  Q_INTERFACES(IPluginFactory)
35  public:
37 
39 
40  IPlugin* createPluginInstance();
41 
42  void releasePluginInstance(IPlugin *);
43 
44  QList<LanguageType> getSupportedLanguages();
45 
46  QString id() const;
47 
48  QString name() const;
49 
50  QIcon icon() const;
51 
52  QWidget* getPreferencePageWidget();
53 
54  void setDefaultValues();
55 
56  void applyValues();
57 
63  QString version() { return NCLCOMPOSER_PLUGINS_VERSION; }
70  QString compatVersion() {return "0.1";}
76  QString vendor() {return "Telemidia Lab";}
82  QString copyright() {return "Telemidia/PUC-Rio";}
89  QString license() {return "LGPL";}
90 
96  QString description() {return tr("Debug Console View prints all the "
97  " messages send by composer-core to plugins.");}
98 
99  QString url() {return "http://composer.telemidia.puc-rio.br/debug";}
100 
101  QString category() {return tr("General");}
102 
103 };
104 
105 #endif // DEBUGCONSOLE_H