File indexing completed on 2022-11-29 19:53:38

0001 /*
0002     kmime_header_factory.h
0003 
0004     KMime, the KDE Internet mail/usenet news message library.
0005     SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0006 
0007     SPDX-License-Identifier: LGPL-2.0-or-later
0008 */
0009 /**
0010   @file
0011   This file is part of the API for handling @ref MIME data and
0012   defines the HeaderFactory class.
0013 
0014   @brief
0015   Defines the HeaderFactory class.
0016 
0017   @authors Constantin Berzan \<exit3219@gmail.com\>
0018 */
0019 
0020 #pragma once
0021 
0022 #include "kmime_export.h"
0023 
0024 #include <QByteArray>
0025 
0026 namespace KMime
0027 {
0028 
0029 namespace Headers
0030 {
0031 class Base;
0032 }
0033 
0034 namespace HeaderFactory
0035 {
0036     Headers::Base *createHeader(const char *type, size_t typeLen);
0037     inline Headers::Base *createHeader(const QByteArray &type)
0038     {
0039         return createHeader(type.constData(), type.size());
0040     }
0041 
0042 }
0043 
0044 } // namespace KMime
0045