dmILoaderFactory Class Reference

Implement methods for handling images based on mimes types. More...

#include <CCI_LoaderFactory.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool Register (CONST char_t *mime, CONST char_t *module, dm_uint flags)
bool AddMimeExt (CONST char_t *mime, CONST char_t *file_ext)
CONST char_t * GetMimeType (const char_t *filename)
bool LoadMimes ()
bool GetMimeInfos (const char_t *mime, dm_uint key, cci_object *proplist, dm_uint flags)
bool GetMimeList (cci_object *stringlist, dm_uint flags)
const char * GetMimeExt (const char_t *mime)
cci_object * GetLoader (const char_t *mime, dm_uint flags)
bool LoaderExists (const char_t *mime, dm_uint flags)


Detailed Description

Implement methods for handling images based on mimes types.

The LoaderFactory interface expose methods for referencing all registered mimes image types and associated loaders that the Daim library can handle.

The LoaderFactory should be invoked as resident service and initialized at startup with the LoadMimes() method


Member Function Documentation

bool dmILoaderFactory::AddMimeExt CONST char_t *  mime,
CONST char_t *  file_ext
[inline]
 

Associate a mime tye to a file extension

Parameters:
[in] mime the mime type associated to the extension
[in] file_ext an list of '|' separated file extensions (without '.').

cci_object* dmILoaderFactory::GetLoader const char_t *  mime,
dm_uint  flags
[inline]
 

Return a loader for the given the mime type

const char* dmILoaderFactory::GetMimeExt const char_t *  mime  )  [inline]
 

Return the first available extension for given mime type

bool dmILoaderFactory::GetMimeInfos const char_t *  mime,
dm_uint  key,
cci_object *  proplist,
dm_uint  flags
[inline]
 

Return informations about a particular mime type in a dmIPropertyList object

Parameters:
[in] mime the mime type associated to the extension, if NULL then informations about all mimes type are returned as a sequence in the proplist obect.
[in] key the key to the entry in the property list
[in] proplist the property list object
[in] flags specifies the type (readable or writable) of the list that you want to be returned.

bool dmILoaderFactory::GetMimeList cci_object *  stringlist,
dm_uint  flags
[inline]
 

Return all registered mimes type in a dmIStringList object The flags parameter specifies the type (readable or writable) of the list that you want to be returned.

See also:
dmILoader

CONST char_t* dmILoaderFactory::GetMimeType const char_t *  filename  )  [inline]
 

Return the mime type associated to the file filename

bool dmILoaderFactory::LoaderExists const char_t *  mime,
dm_uint  flags
[inline]
 

Return true if there is a default loader for the given mime type

bool dmILoaderFactory::LoadMimes  )  [inline]
 

Load mimes type and register associated loaders. This method should be called at startup.

bool dmILoaderFactory::Register CONST char_t *  mime,
CONST char_t *  module,
dm_uint  flags
[inline]
 

Register a module associated to a mime type

Parameters:
[in] mime the mime type associated to the loader
[in] module the module class id
[in] flags specifies the type of the loader (readable or writable).


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO