• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KMimeSourceFactory Class Reference

An extension to QMimeSourceFactory that uses KIconLoader to find images. More...

#include <kmimesourcefactory.h>

Inheritance diagram for KMimeSourceFactory:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Protected Member Functions

virtual void virtual_hook (int id, void *data)

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

Author:
Peter Putzer <putzer@kde.org>

Definition at line 40 of file kmimesourcefactory.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
loader is the iconloader used to find images.

Definition at line 47 of file kmimesourcefactory.cpp.

KMimeSourceFactory::~KMimeSourceFactory (  )  [virtual]

Destructor.

Definition at line 53 of file kmimesourcefactory.cpp.


Member Function Documentation

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:

 "<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...

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.

Reimplemented from QMimeSourceFactory.

Definition at line 58 of file kmimesourcefactory.cpp.

void KMimeSourceFactory::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 104 of file kmimesourcefactory.cpp.


The documentation for this class was generated from the following files:
  • kmimesourcefactory.h
  • kmimesourcefactory.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal