Databaseconnectionclasses  0.5.3
hk_mimetype.h
1 // ****************************************************************************
2 // copyright (c) 2000-2006 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file COPYING included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 #ifndef HK_MIMETYPE
12 #define HK_MIMETYPE
13 #include "hk_class.h"
22 class hk_mimetype : public hk_class
23 {
24 public:
29  hk_mimetype();
33 static hk_string mimetype(struct_raw_data* data);
37 static hk_string mimetype(const hk_string& filename);
42 static void set_mimetypedatabasefile(const hk_string&);
46 static hk_string mimetypedatabasefile();
47 protected:
48 
49 
50 private:
51 static hk_string p_mimetypedatabasefile;
52 static void init(void);
53 };
54 
55 #endif //HK_MIMETYPE
basic class for all other defined classes.
Definition: hk_class.h:52
hk_mimetype()
Definition: hk_mimetype.cpp:23
Definition: hk_definitions.h:122
static hk_string mimetype(struct_raw_data *data)
Definition: hk_mimetype.cpp:58
static void set_mimetypedatabasefile(const hk_string &)
Definition: hk_mimetype.cpp:93
static hk_string mimetypedatabasefile()
Definition: hk_mimetype.cpp:101
hk_mimetype tries to detect the mimetype of a file or a memory block
Definition: hk_mimetype.h:22