00001 /****************************************************************************** 00002 * swsourcemgr.h - definition of class SWSourceMgr used to provide an interface for 00003 * caching information of module sources 00004 * 00005 * $Id: swsourcemgr_8h-source.html,v 1.1 2003/02/28 21:22:06 mgruner Exp $ 00006 * 00007 * Copyright 2002 CrossWire Bible Society (http://www.crosswire.org) 00008 * CrossWire Bible Society 00009 * P. O. Box 2528 00010 * Tempe, AZ 85280-2528 00011 * 00012 * This program is free software; you can redistribute it and/or modify it 00013 * under the terms of the GNU General Public License as published by the 00014 * Free Software Foundation version 2. 00015 * 00016 * This program is distributed in the hope that it will be useful, but 00017 * WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * General Public License for more details. 00020 * 00021 */ 00022 00023 #ifndef SWSOURCEMGR_H 00024 #define SWSOURCEMGR_H 00025 00026 #include <defs.h> 00027 00028 SWORD_NAMESPACE_START 00029 00030 class SWConfig; 00031 00032 class SWDLLEXPORT SWSourceMgr { 00033 private: 00037 char *prefixPath; 00041 char *configPath; 00045 char configType; 00054 SWConfig *config; 00058 SWConfig * myconfig; 00059 00060 public: 00061 SWSourceMgr(const char *iConfigPath); 00062 //SWMgr(const char *iConfigPath, bool autoload = true, SWFilterMgr *filterMgr = 0); 00063 virtual char Refresh() = 0; 00064 void loadConfigDir(const char *ipath); 00065 }; 00066 00067 SWORD_NAMESPACE_END 00068 #endif