]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/YQUIComponent.h
Duncan, for you
[duncan/yast2-qt4.git] / src / YQUIComponent.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:         YQUIComponent.h
14
15   Author:       Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19 #ifndef YQUIComponent_h
20 #define YQUIComponent_h
21
22 #define y2log_component "qt-ui"
23 #include <ycp/y2log.h>
24
25 #include <YUIComponent.h>
26 #include "YQUI.h"
27
28
29 class YQUIComponent :  public YUIComponent
30 {
31 public:
32
33     YQUIComponent(): YUIComponent() {}
34
35     /**
36      * Create a Qt UI. This is called from within setServerOptions().
37      *
38      * Reimplemented from YUIComponent.
39      **/
40     virtual YUI * createUI( int argc, char **argv, bool with_threads, const char * macro_file )
41     {
42         return new YQUI( argc, argv, with_threads, macro_file );
43     }
44
45     /**
46      * Returns the name of this YaST2 component.
47      *
48      * Reimplemented from YUIComponent.
49      **/
50     virtual string name() const { return "qt4"; }
51
52 };
53
54
55 #endif // YQUIComponent_h