00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: Y2CCProgram.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Thomas Roelz <tom@suse.de> 00017 00018 /-*/ 00019 // -*- c++ -*- 00020 00021 /* 00022 * Component Creator for external program components 00023 * 00024 * Author: Mathias Kettner <kettner@suse.de> 00025 */ 00026 00027 #ifndef Y2CCProgram_h 00028 #define Y2CCProgram_h 00029 00030 #include "Y2ComponentCreator.h" 00031 00032 class Y2CCProgram : public Y2ComponentCreator 00033 { 00037 bool creates_servers; 00038 00042 bool creates_non_y2; 00043 00044 public: 00055 Y2CCProgram(bool server, bool non_y2); 00056 00060 bool isServerCreator() const; 00061 00069 Y2Component *createInLevel(const char *name, int level, int current_level) const; 00070 00074 virtual Y2Component* provideNamespace(const char* name_space); 00075 }; 00076 00077 00078 #endif // Y2CCProgram_h