00001 #ifndef SetupSchemesH 00002 #define SetupSchemesH 00003 00004 /******************************************************************************* 00005 Copyright 2002 Petr Kulhanek 00006 00007 This file is part of Core plugin. 00008 00009 Core plugin is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 Core plugin is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with Core plugin; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 *******************************************************************************/ 00023 /******************************************************************************* 00024 ** PROJECT: Project NEMESIS 00025 ** FILE: SetupSchemes 00026 ** FUNCTION: scheme setup manager 00027 ** VERSION: 1.0 00028 ** LANGUAGE: CBuilder C++ 00029 ** TARGET COMPUTER: IBM PC 00030 ** PROGRAMMER: Petr Kulhánek 00031 ** HISTORY: 00032 VERSION DATE NOTE 00033 1.0 2002-07-29 00034 *******************************************************************************/ 00035 00039 /* HEADER FILES ***************************************************************/ 00040 00041 #include "CoreMainHeader.h" 00042 #include "SmallString.h" 00043 #include "ArchiveManager.h" 00044 00045 /* HEADER FILES END ***********************************************************/ 00046 00047 class CExtUUID; 00048 00049 //--------------------------------------------------------------------------- 00050 00052 00055 class NEMESIS_CORE_PACKAGE CSetupSchemes{ 00056 public: 00057 00058 bool __fastcall Init(void); 00059 00060 bool __fastcall GetFirstScheme(CSmallString& name); 00061 bool __fastcall GetNextScheme(CSmallString& name); 00062 00063 bool __fastcall CreateScheme(const CSmallString& name); 00064 bool __fastcall DeleteScheme(const CSmallString& name); 00065 bool __fastcall CopyScheme(const CSmallString& name,const CSmallString& from); 00066 00067 bool __fastcall SetActiveScheme(const CSmallString& name); 00068 00069 CSmallString __fastcall GetObjectScheme(const CExtUUID& type); 00070 00071 private: 00072 CArchive SchemesArchive; 00073 CEnumerateFolder Enumerator; 00074 CSmallString ActiveScheme; 00075 }; 00076 00077 //--------------------------------------------------------------------------- 00078 00079 extern NEMESIS_CORE_PACKAGE CSetupSchemes SetupSchemes; 00080 00081 //--------------------------------------------------------------------------- 00082 00083 #endif