00001 /* 00002 * Copyright (c) [2004-2009] Novell, Inc. 00003 * 00004 * All Rights Reserved. 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of version 2 of the GNU General Public License as published 00008 * by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, but WITHOUT 00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 * more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, contact Novell, Inc. 00017 * 00018 * To contact Novell about this file by physical or electronic mail, you may 00019 * find current contact information at www.novell.com. 00020 */ 00021 00022 00023 /*---------------------------------------------------------------------\ 00024 | | 00025 | __ __ ____ _____ ____ | 00026 | \ \ / /_ _/ ___|_ _|___ \ | 00027 | \ V / _` \___ \ | | __) | | 00028 | | | (_| |___) || | / __/ | 00029 | |_|\__,_|____/ |_| |_____| | 00030 | | 00031 | core system | 00032 | (C) SuSE GmbH | 00033 \----------------------------------------------------------------------/ 00034 00035 File: Y2CCStorageCallbacks.h 00036 00037 Author: Stanislav Visnovsky <visnov@suse.de> 00038 Maintainer: Stanislav Visnovsky <visnov@suse.de> 00039 00040 /-*/ 00041 // -*- c++ -*- 00042 00043 /* 00044 * Component Creator that executes access to packagemanager 00045 * 00046 * Author: Author: Stanislav Visnovsky <visnov@suse.de> 00047 */ 00048 00049 #ifndef Y2CCStorageCallbacks_h 00050 #define Y2CCStorageCallbacks_h 00051 00052 #include <y2/Y2ComponentCreator.h> 00053 00054 class Y2Component; 00055 00056 class Y2CCStorageCallbacks : public Y2ComponentCreator 00057 { 00058 00059 public: 00063 Y2CCStorageCallbacks() : Y2ComponentCreator(Y2ComponentBroker::BUILTIN) {} 00064 00068 virtual Y2Component *createInLevel(const char *name, int level, int current_level) const; 00069 00070 virtual bool isServerCreator() const; 00071 00075 virtual Y2Component *provideNamespace(const char *name); 00076 }; 00077 00078 00079 #endif // Y2CCStorageCallbacks_h
1.5.6