Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SLPluginFeature::MimeTypes Class Reference
[Plugins system]

This abstract class is the interface with OS mime database. More...

#include <SLPluginFeature.hpp>

Inheritance diagram for SLPluginFeature::MimeTypes:

Inheritance graph
[legend]
Collaboration diagram for SLPluginFeature::MimeTypes:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual SLMime getMimeFromFile (const SLFile &file)=0

Detailed Description

This abstract class is the interface with OS mime database.

See also:
SLPluginFeature
Author:
Alexandre Sauve
This class will provide the mime type of a given File.


Member Function Documentation

virtual SLMime SLPluginFeature::MimeTypes::getMimeFromFile const SLFile file  )  [pure virtual]
 

Detect the mime type from a file. Code Example :

Mime mime = getMimeFromFile("/etc/passwd"); // mime is "text/plain" // note : the constructor of File has been called automatically with // the defaults locale = "" and encoding = ""


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:39 2004 for segusoLand by doxygen 1.3.6-20040222