Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KMimeSourceFactory Class Reference

#include <kmimesourcefactory.h>

List of all members.

Public Methods

 KMimeSourceFactory (KIconLoader *loader=KGlobal::iconLoader())
virtual ~KMimeSourceFactory ()
virtual QString makeAbsolute (const QString &abs_or_rel_name, const QString &context) const


Detailed Description

An extension to QMimeSourceFactory that uses KIconLoader to find images.

Normally you don't have to instantiate this class at all, KApplication does that for you automagically and sets QMimeSourceFactory::setDefaultFactory.

Version:
Id:
kmimesourcefactory.h,v 1.6 2002/03/03 21:20:26 lunakl Exp
Author:
Peter Putzer <putzer@kde.org>

Definition at line 39 of file kmimesourcefactory.h.


Constructor & Destructor Documentation

KMimeSourceFactory::KMimeSourceFactory KIconLoader   loader = KGlobal::iconLoader()
 

Constructor.

Parameters:
loader  is the iconloader used to find images.

virtual KMimeSourceFactory::~KMimeSourceFactory   [virtual]
 

Destructor.


Member Function Documentation

virtual QString KMimeSourceFactory::makeAbsolute const QString &    abs_or_rel_name,
const QString &    context
const [virtual]
 

This function is maps an absolute or relative name for a resource to the absolute one.

To load an icon, prepend the category name before the icon name, in the style of <category>|<icon>.

Example:

 "", "", ...
 
Parameters:
abs_or_rel_name  is the absolute or relative pathname.
context  is the path of the context object for the queried resource. Almost always empty.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:19 2003 for kdelibs by doxygen1.2.18