libkdenetwork Library API Documentation

KMime::HeaderFactory Class Reference

This is a factory for KMime::Headers.Factory for KMime::Headers. More...

#include <kmime_headers.h>

Inheritance diagram for KMime::HeaderFactory:

Inheritance graph
[legend]
Collaboration diagram for KMime::HeaderFactory:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static Headers::Basecreate (const char *aType)
static Headers::Basecreate (const QCString &aType)
static Headers::Baseupgrade (Headers::Generic *aType)

Detailed Description

This is a factory for KMime::Headers.Factory for KMime::Headers.

You can create new header objects by type with create and upgrade an existing Headers::Generic to a specialized header object.

If you are a header class author, you can register your class (let's call it Foo) so:

    

Author:
Marc Mutz <mutz@kde.org>
See also:
KMime::Headers::Base KMime::Headers::Generic

Definition at line 809 of file kmime_headers.h.


Member Function Documentation

static Headers::Base* KMime::HeaderFactory::create const char *  aType  )  [inline, static]
 

Create a new header object of type aType, or a fitting generic substitute, if available and known.

Definition at line 820 of file kmime_headers.h.

static Headers::Base* KMime::HeaderFactory::create const QCString aType  )  [inline, static]
 

This is a wrapper around the above function, provided for convenience.

It differs from the above only in what arguments it takes.

Definition at line 835 of file kmime_headers.h.

static Headers::Base* KMime::HeaderFactory::upgrade Headers::Generic aType  )  [inline, static]
 

Consume aType and build a header object that corresponds to the type that aType->type() returns.

Parameters:
aType generic header to upgrade. This will be deleted if necessary, so don't use references to it after calling this function.
Returns:
A corresponding header object (if available), or a generic object for this kind of header (if known), or aType (else).
See also:
Headers::Generic create

Definition at line 849 of file kmime_headers.h.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 17 09:52:32 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003