libyui-mga-gtk  1.0.1
YGWE.cc
1 /*
2  Copyright 2013 by Angelo Naselli <anaselli at linux dot it>
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Lesser General Public License as
6  published by the Free Software Foundation; either version 2.1 of the
7  License, or (at your option) version 3.0 of the License. This library
8  is distributed in the hope that it will be useful, but WITHOUT ANY
9  WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11  License for more details. You should have received a copy of the GNU
12  Lesser General Public License along with this library; if not, write
13  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14  Floor, Boston, MA 02110-1301 USA
15 */
16 
17 
18 /*-/
19 
20  File: YGWE.cc
21 
22  Author: Angelo Naselli <anaselli@linux.it>
23 
24 /-*/
25 
26 #include "YGWE.h"
27 #include "YMGAGWidgetFactory.h"
28 #include <YUIException.h>
29 #include <string.h>
30 
31 YGWE::YGWE( const std::string& name ) : YExternalWidgets(name)
32 {
33 }
34 
35 YGWE::~YGWE()
36 {
37 }
38 
39 YExternalWidgetFactory* YGWE::createExternalWidgetFactory()
40 {
41  YMGAGWidgetFactory * factory = new YMGAGWidgetFactory();
42  YUI_CHECK_NEW( factory );
43 
44  return factory;
45 }
46 
47 YExternalWidgets * createExternalWidgets(const char *name)
48 {
49  std::string pluginName(name);
50  YGWE * ew = new YGWE( pluginName );
51  YUI_CHECK_NEW ( ew );
52 
53  return YExternalWidgets::externalWidgets(pluginName);
54 }
YMGAGWidgetFactory
Concrete widget factory for mandatory widgets.
Definition: YMGAGWidgetFactory.h:41
YGWE
Definition: YGWE.h:30