00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiWord 00004 * Copyright (C) 2002 AbiSource, Inc. 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 00023 #ifndef IE_FILEINFO_H 00024 #define IE_FILEINFO_H 00025 00026 #include "ut_string_class.h" 00027 00028 #include "ie_types.h" 00029 00030 class ABI_EXPORT IE_FileInfo 00031 { 00032 public: 00033 IE_FileInfo (); 00034 00035 void setFileInfo (const char * psz_MIME_TypeOrPseudo = 0, 00036 const char * psz_PreferredExporter = 0, 00037 const char * psz_PreferredImporter = 0); 00038 00039 const UT_UTF8String & PreferredImporter () const { return m_PreferredImporter; } 00040 const UT_UTF8String & PreferredExporter () const { return m_PreferredExporter; } 00041 const UT_UTF8String & MIME_TypeOrPseudo () const { return m_MIME_TypeOrPseudo; } 00042 00043 private: 00044 UT_UTF8String m_PreferredImporter; 00045 UT_UTF8String m_PreferredExporter; 00046 UT_UTF8String m_MIME_TypeOrPseudo; 00047 00048 public: 00049 static const char * mapAlias (const char * alias); // may return alias itself 00050 }; 00051 00052 #endif /* ! IE_FILEINFO_H */