NCL Composer  0.1.5
 All Classes Functions Variables Pages
DebugConsoleFactory.cpp
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 #include "DebugConsoleFactory.h"
19 
20 DebugConsoleFactory::DebugConsoleFactory()
21 {
22 
23 }
24 
25 DebugConsoleFactory::~DebugConsoleFactory()
26 {
27 
28 }
29 
31 {
32  return new DebugConsolePlugin();
33 }
34 
36 {
37  DebugConsolePlugin *debug = qobject_cast<DebugConsolePlugin*>(plugin);
38 
39  if (debug)
40  {
41  delete debug;
42  debug = NULL;
43  }
44 
45 }
46 
47 QList<LanguageType> DebugConsoleFactory::getSupportedLanguages()
48 {
49  QList<LanguageType> lTypes;
50  lTypes.append(NCL);
51  return lTypes;
52 }
53 
54 QString DebugConsoleFactory::id() const
55 {
56  return "br.puc-rio.telemidia.DebugConsole";
57 }
58 
59 QString DebugConsoleFactory::name() const
60 {
61  return tr("Debug Console");
62 }
63 
64 QIcon DebugConsoleFactory::icon() const
65 {
66  return QIcon(":/images/icon.png");
67 }
68 
69 QWidget* DebugConsoleFactory::getPreferencePageWidget()
70 {
71  return NULL;
72 }
73 
74 void DebugConsoleFactory::setDefaultValues()
75 {
76 
77 }
78 
79 void DebugConsoleFactory::applyValues()
80 {
81 
82 }
83 
84 Q_EXPORT_PLUGIN2(DebugConsole,DebugConsoleFactory)