00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: Y2CCUI.h 00014 00015 Author: Stanislav Visnovsky <visnov@suse.de> 00016 Maintainer: Stanislav Visnovsky <visnov@suse.de> 00017 00018 /-*/ 00019 // -*- c++ -*- 00020 00021 /* 00022 * Component Creator that executes access to UI 00023 * 00024 * Author: Stanislav Visnovsky <visnov@suse.de> 00025 */ 00026 00027 #ifndef Y2CCUI_h 00028 #define Y2CCUI_h 00029 00030 #include <y2/Y2ComponentCreator.h> 00031 00032 class Y2Component; 00033 00034 class Y2CCUI : public Y2ComponentCreator 00035 { 00036 00037 public: 00038 Y2CCUI (Y2ComponentBroker::order_t order = Y2ComponentBroker::BUILTIN) : Y2ComponentCreator (order) {} 00039 00040 virtual bool isServerCreator () const { return true; }; 00041 00042 }; 00043 00044 // Have this class implement the UI interface for ycpc, where we need 00045 // only the type info and not the actual implementation. 00046 // But let it stand after the real UIs 00047 class Y2CCDummyUI : public Y2CCUI 00048 { 00049 00050 public: 00051 Y2CCDummyUI () : Y2CCUI (Y2ComponentBroker::PLUGIN) {} 00052 00056 virtual Y2Component *create(const char *name) const; 00057 00061 virtual Y2Component *provideNamespace(const char *name); 00062 00063 }; 00064 00065 00066 #endif // Y2CCUI_h
1.5.3