00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: Y2CCPkg.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 packagemanager 00023 * 00024 * Author: Author: Stanislav Visnovsky <visnov@suse.de> 00025 */ 00026 00027 #ifndef Y2CCPkg_h 00028 #define Y2CCPkg_h 00029 00030 #include <y2/Y2ComponentCreator.h> 00031 00032 class Y2Component; 00033 00034 class Y2CCPkg : public Y2ComponentCreator 00035 { 00036 00037 public: 00041 Y2CCPkg() : Y2ComponentCreator(Y2ComponentBroker::BUILTIN) {} 00042 00046 virtual Y2Component *createInLevel(const char *name, int level, int current_level) const; 00047 00048 virtual bool isServerCreator() const; 00049 00053 virtual Y2Component *provideNamespace(const char *name); 00054 }; 00055 00056 00057 #endif // Y2CCPkg_h