.TH "KMimeSourceFactory" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMimeSourceFactory \- An extension to \fBQMimeSourceFactory\fP that uses \fBKIconLoader\fP to find images.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmimesourcefactory.h>\fP
.PP
Inherits \fBQMimeSourceFactory\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMimeSourceFactory\fP (\fBKIconLoader\fP *loader=KGlobal::iconLoader())"
.br
.ti -1c
.RI "virtual \fB~KMimeSourceFactory\fP ()"
.br
.ti -1c
.RI "virtual \fBQString\fP \fBmakeAbsolute\fP (const \fBQString\fP &abs_or_rel_name, const \fBQString\fP &context) const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *\fBdata\fP)"
.br
.in -1c
.SH "Detailed Description"
.PP 
An extension to \fBQMimeSourceFactory\fP that uses \fBKIconLoader\fP to find images. 

Normally you don't have to instantiate this class at all, \fBKApplication\fP does that for you automagically and sets \fBQMimeSourceFactory::setDefaultFactory\fP.
.PP
\fBAuthor:\fP
.RS 4
Peter Putzer <putzer@kde.org> 
.RE
.PP

.PP
Definition at line 38 of file kmimesourcefactory.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMimeSourceFactory::KMimeSourceFactory (\fBKIconLoader\fP * loader = \fCKGlobal::iconLoader()\fP)"
.PP
Constructor. 
.PP
\fBParameters:\fP
.RS 4
\fIloader\fP is the iconloader used to find images. 
.RE
.PP

.PP
Definition at line 37 of file kmimesourcefactory.cpp.
.SS "KMimeSourceFactory::~\fBKMimeSourceFactory\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Definition at line 43 of file kmimesourcefactory.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBQString\fP KMimeSourceFactory::makeAbsolute (const \fBQString\fP & abs_or_rel_name, const \fBQString\fP & context) const\fC [virtual]\fP"
.PP
This function is maps an absolute or relative name for a resource to the absolute one. 
.PP
To load an icon, prepend the \fCcategory\fP name before the \fCicon\fP name, in the style of <category>|<icon>.
.PP
Example: 
.PP
.nf
 '<img src=\'user|ksysv_start\'/>', '<img src='\desktop|trash\'>', ...

.fi
.PP
.PP
\fBParameters:\fP
.RS 4
\fIabs_or_rel_name\fP is the absolute or relative pathname. 
.br
\fIcontext\fP is the path of the context object for the queried resource. Almost always empty. 
.RE
.PP

.PP
Reimplemented from \fBQMimeSourceFactory\fP.
.PP
Definition at line 48 of file kmimesourcefactory.cpp.
.PP
References QString::find(), QString::isEmpty(), QString::left(), QString::length(), QMimeSourceFactory::makeAbsolute(), and QString::right().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
