KMIME Library
Go to the documentation of this file.
33 #ifndef __KMIME_HEADERFACTORY_H__
34 #define __KMIME_HEADERFACTORY_H__
36 #include "kmime_export.h"
38 #include <QtCore/QByteArray>
49 virtual ~HeaderMakerBase() {}
50 virtual Headers::Base *create()
const = 0;
54 class HeaderMaker :
public HeaderMakerBase
57 virtual Headers::Base *create()
const
63 class HeaderFactoryPrivate;
73 template<
typename T>
inline bool registerHeader()
76 return registerHeaderMaker(
QByteArray( dummy.type() ),
new HeaderMaker<T>() );
87 bool registerHeaderMaker(
const QByteArray &type, HeaderMakerBase *maker );
89 friend class HeaderFactoryPrivate;
90 HeaderFactoryPrivate *
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:18 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.