00001 /* 00002 * wxChecksums 00003 * Copyright (C) 2003-2004 Julien Couot 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 /** 00021 * \file fileutil.hpp 00022 * File utilities. 00023 */ 00024 00025 #ifndef INC_FILEUTIL_HPP 00026 #define INC_FILEUTIL_HPP 00027 00028 //--------------------------------------------------------------------------- 00029 // For compilers that support precompilation, includes "wx.h". 00030 #include <wx/wxprec.h> 00031 00032 #ifdef __BORLANDC__ 00033 #pragma hdrstop 00034 #endif 00035 00036 #ifndef WX_PRECOMP 00037 // Include your minimal set of headers here, or wx.h 00038 #include <wx/wx.h> 00039 #endif 00040 #include <wx/filename.h> 00041 00042 #include "fdftlmk.hpp" 00043 #include "sumfile.hpp" 00044 //--------------------------------------------------------------------------- 00045 00046 00047 // Gets a filter for the known types of checksums' files. 00048 wxFileDialogFilterMaker getFilterForKnownTypesOfChecksumsFiles(); 00049 00050 // Opens and read the given checksum file. 00051 SumFile* openChecksumFile(const wxFileName& fileName); 00052 00053 00054 #endif // FILEUTIL