• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Member Functions | Protected Member Functions | Friends | List of all members
KMimeSourceFactory Class Reference

#include <kmimesourcefactory.h>

Inherits TQMimeSourceFactory.

Public Member Functions

 KMimeSourceFactory (TDEIconLoader *loader=TDEGlobal::iconLoader())
 
virtual ~KMimeSourceFactory ()
 
virtual TQString makeAbsolute (const TQString &abs_or_rel_name, const TQString &context) const
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Friends

class TDEInstance
 

Detailed Description

An extension to TQMimeSourceFactory that uses TDEIconLoader to find images.

Normally you don't have to instantiate this class at all, TDEApplication does that for you automagically and sets TQMimeSourceFactory::setDefaultFactory().

Author
Peter Putzer putze.nosp@m.r@kd.nosp@m.e.org

Definition at line 40 of file kmimesourcefactory.h.

Constructor & Destructor Documentation

◆ KMimeSourceFactory()

KMimeSourceFactory::KMimeSourceFactory ( TDEIconLoader *  loader = TDEGlobal::iconLoader())

Constructor.

Parameters
loaderis the iconloader used to find images.

Definition at line 47 of file kmimesourcefactory.cpp.

◆ ~KMimeSourceFactory()

KMimeSourceFactory::~KMimeSourceFactory ( )
virtual

Destructor.

Definition at line 53 of file kmimesourcefactory.cpp.

Member Function Documentation

◆ makeAbsolute()

TQString KMimeSourceFactory::makeAbsolute ( const TQString &  abs_or_rel_name,
const TQString &  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_nameis the absolute or relative pathname.
contextis the path of the context object for the queried resource. Almost always empty.

Definition at line 58 of file kmimesourcefactory.cpp.

◆ virtual_hook()

void KMimeSourceFactory::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 104 of file kmimesourcefactory.cpp.

Friends And Related Function Documentation

◆ TDEInstance

friend class TDEInstance
friend

Definition at line 79 of file kmimesourcefactory.h.


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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.