Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Y2CCQt.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       Y2CCQt.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 
00021 
00022 #ifndef _Y2CCQt_h
00023 #define _Y2CCQt_h
00024 
00025 #include "YQUIComponent.h"
00026 
00034 class Y2CCQt : public Y2ComponentCreator
00035 {
00036 public:
00040     Y2CCQt() : Y2ComponentCreator(Y2ComponentBroker::BUILTIN) { };
00041 
00046     bool isServerCreator() const { return true; };
00047 
00051     Y2Component *create(const char * name) const
00052     {
00053         if (!strcmp(name, "qt") )
00054             return new YQUIComponent();
00055         else
00056             return 0;
00057     }
00058 };
00059 
00060 #endif  // ifndef _Y2CCQt_h
00061 
00062 
00063 // EOF

Generated on Wed Nov 12 06:11:15 2008 for yast2-qt by  doxygen 1.3.9.1