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

Y2CCNCursesUI.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:       Y2CCNCursesUI.h
00014 
00015    Author:     Michael Andres <ma@suse.de>
00016    Maintainer: Michael Andres <ma@suse.de>
00017 
00018 /-*/
00019 // -*- c++ -*-
00020 
00021 #ifndef _Y2CCNCursesUI_h
00022 #define _Y2CCNCursesUI_h
00023 
00024 
00025 #include "YNCursesComponent.h"
00026 #include <iosfwd>
00027 
00028 #include "ycp/y2log.h"
00029 
00037 class Y2CCNcursesUI : public Y2ComponentCreator
00038 {
00039 public:
00043     Y2CCNcursesUI() : Y2ComponentCreator(Y2ComponentBroker::BUILTIN) { };
00044 
00049     bool isServerCreator() const { return true; };
00050 
00058     Y2Component *create(const char * name) const
00059     {
00060         y2milestone( "Creating %s component", name );
00061         if (!strcmp(name, "ncurses") ) {
00062             Y2Component* r = new YNCursesComponent();
00063             return r;
00064         }
00065         else return 0;
00066     }
00067 };
00068 
00069 #endif // Y2CCNCursesUI_h

Generated on Wed Sep 14 10:52:54 2005 for yast2-ncurses by  doxygen 1.4.4