hk_mimetype Class Reference

hk_mimetype tries to detect the mimetype of a file or a memory block More...

#include <hk_mimetype.h>

Inheritance diagram for hk_mimetype:

Inheritance graph
[legend]
Collaboration diagram for hk_mimetype:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

hk_mimetype tries to detect the mimetype of a file or a memory block

Version:
Revision
1.2
Author:
Horst Knorr (hk_classes@knoda.org)


Constructor & Destructor Documentation

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


Member Function Documentation

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


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 02:48:35 2006 for Databaseconnectionclasses by  doxygen 1.5.0