00001 // **************************************************************************** 00002 // copyright (c) 2000-2006 Horst Knorr <hk_classes@knoda.org> 00003 // This file is part of the hk_classes library. 00004 // This file may be distributed and/or modified under the terms of the 00005 // GNU Library Public License version 2 as published by the Free Software 00006 // Foundation and appearing in the file COPYING included in the 00007 // packaging of this file. 00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00010 // **************************************************************************** 00011 #ifndef HK_MIMETYPE 00012 #define HK_MIMETYPE 00013 #include "hk_class.h" 00022 class hk_mimetype : public hk_class 00023 { 00024 public: 00029 hk_mimetype(); 00033 static hk_string mimetype(struct_raw_data* data); 00037 static hk_string mimetype(const hk_string& filename); 00042 static void set_mimetypedatabasefile(const hk_string&); 00046 static hk_string mimetypedatabasefile(); 00047 protected: 00048 00049 00050 private: 00051 static hk_string p_mimetypedatabasefile; 00052 static void init(void); 00053 }; 00054 00055 #endif //HK_MIMETYPE
1.5.0