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

KDE3Support

K3MimeSourceFactory Class Reference

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

#include <k3mimesourcefactory.h>

Inheritance diagram for K3MimeSourceFactory:
Q3MimeSourceFactory

List of all members.

Public Member Functions

 K3MimeSourceFactory (KIconLoader *loader=0)
virtual QString makeAbsolute (const QString &abs_or_rel_name, const QString &context) const
virtual ~K3MimeSourceFactory ()

Static Public Member Functions

static void install ()

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 42 of file k3mimesourcefactory.h.


Constructor & Destructor Documentation

K3MimeSourceFactory::K3MimeSourceFactory ( KIconLoader *  loader = 0  )  [explicit]

Constructor.

Parameters:
loader is the iconloader used to find images.

Definition at line 54 of file k3mimesourcefactory.cpp.

K3MimeSourceFactory::~K3MimeSourceFactory (  )  [virtual]

Destructor.

Definition at line 60 of file k3mimesourcefactory.cpp.


Member Function Documentation

void K3MimeSourceFactory::install (  )  [static]

Set up a K3MimeSourceFactory instance as the default mimesource factory.

Definition at line 36 of file k3mimesourcefactory.cpp.

QString K3MimeSourceFactory::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.

Definition at line 65 of file k3mimesourcefactory.cpp.

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

Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.

Unused in this class.

Definition at line 106 of file k3mimesourcefactory.cpp.


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

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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