#include <hk_mimetype.h>
Inheritance diagram for hk_mimetype:


Public Member Functions | |
| hk_mimetype () | |
Static Public Member Functions | |
| static hk_string | mimetype (struct_raw_data *data) |
| static hk_string | mimetype (const hk_string &filename) |
| static void | set_mimetypedatabasefile (const hk_string &) |
| static hk_string | mimetypedatabasefile () |
| hk_mimetype::hk_mimetype | ( | ) |
in most cases you should use the static members 'mimetype' directly, so there should be no need to create this object
| hk_string hk_mimetype::mimetype | ( | struct_raw_data * | data | ) | [static] |
returns the mimetype of the memory block "data"
| hk_string hk_mimetype::mimetype | ( | const hk_string & | filename | ) | [static] |
returns the mimetype of the file "filename"
| void hk_mimetype::set_mimetypedatabasefile | ( | const hk_string & | ) | [static] |
you can set the mimetype database file which includes the magic definitions, if not set '/usr/share/misc/magic' is used
| hk_string hk_mimetype::mimetypedatabasefile | ( | ) | [static] |
returns the used mimetype database filename, an empty string if non has set
1.5.0