00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiSource Application Framework 00004 * Copyright (C) 2005 Robert Staudinger <robsta@stereolyzer.net> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA. 00020 */ 00021 00022 #ifndef XAP_MODULE_FACTORY_H 00023 #define XAP_MODULE_FACTORY_H 00024 00025 #include "xap_Module.h" 00026 00027 class ABI_EXPORT XAP_ModuleFactory 00028 { 00029 friend class XAP_Module; 00030 00031 public: 00032 00036 virtual const char * getName (void) = NULL; 00037 00043 virtual XAP_Module * loadModule (const char * szFilename) = NULL; 00051 virtual bool unloadModule (XAP_Module * module) { return false; } 00052 }; 00053 00054 #endif /* XAP_MODULE_FACTORY_H */