KMime

kmime_headers.cpp File Reference
#include "kmime_headers.h"
#include "kmime_headers_p.h"
#include "kmime_util.h"
#include "kmime_util_p.h"
#include "kmime_codecs.h"
#include "kmime_content.h"
#include "kmime_headerfactory_p.h"
#include "kmime_debug.h"
#include "kmime_warning.h"
#include <KCharsets>
#include <KCodecs>
#include <assert.h>
#include <ctype.h>
Include dependency graph for kmime_headers.cpp:

Go to the source code of this file.

Macros

#define kmime_mk_dptr_ctor(subclass, baseclass)   subclass::subclass( subclass##Private *d ) : baseclass( d ) {}
 
#define kmime_mk_trivial_ctor(subclass, baseclass)
 
#define kmime_mk_trivial_ctor_with_dptr(subclass, baseclass)
 
#define kmime_mk_trivial_ctor_with_name(subclass, baseclass, name)
 
#define kmime_mk_trivial_ctor_with_name_and_dptr(subclass, baseclass, name)
 

Functions

BaseKMime::Headers::createHeader (const QByteArray &type)
 
 KMime::Headers::Generics::kmime_mk_dptr_ctor (Structured, Base) Structured
 
 KMime::Headers::Generics::kmime_mk_dptr_ctor (Address, Structured) Address
 
 KMime::Headers::Generics::kmime_mk_trivial_ctor_with_dptr (MailboxList, Address) kmime_mk_dptr_ctor(MailboxList
 
 KMime::Headers::kmime_mk_trivial_ctor_with_name_and_dptr (ContentID, SingleIdent, Content-ID) kmime_mk_dptr_ctor(ContentID
 
static bool KMime::Headers::Generics::stringToMailbox (const QByteArray &address, const QString &displayName, Types::Mailbox &mbox)
 

Variables

static const encTableType KMime::Headers::encTable []
 

Detailed Description

This file is part of the API for handling MIME data and defines the various header classes:

  • header's base class defining the common interface
  • generic base classes for different types of fields
  • incompatible, Structured-based field classes
  • compatible, Unstructured-based field classes

Defines the various headers classes.

Author(s):
the KMime authors (see AUTHORS file), Volker Krause <vkrau[email protected][email protected][email protected]de.or[email protected]g>

Definition in file kmime_headers.cpp.

Macro Definition Documentation

#define kmime_mk_trivial_ctor (   subclass,
  baseclass 
)
Value:
subclass::subclass() : baseclass() \
{ \
} \
\
subclass::~subclass() {}

Definition at line 46 of file kmime_headers.cpp.

#define kmime_mk_trivial_ctor_with_dptr (   subclass,
  baseclass 
)
Value:
subclass::subclass() : baseclass( new subclass##Private ) \
{ \
} \
\
subclass::~subclass() { \
Q_D(subclass); \
delete d; \
d_ptr = nullptr; \
}

Definition at line 55 of file kmime_headers.cpp.

#define kmime_mk_trivial_ctor_with_name (   subclass,
  baseclass,
  name 
)
Value:
kmime_mk_trivial_ctor( subclass, baseclass ) \
\
const char *subclass::type() const \
{ \
return staticType(); \
} \
const char *subclass::staticType() { return #name; }
QString name(const QVariant &location)

Definition at line 68 of file kmime_headers.cpp.

#define kmime_mk_trivial_ctor_with_name_and_dptr (   subclass,
  baseclass,
  name 
)
Value:
kmime_mk_trivial_ctor_with_dptr( subclass, baseclass ) \
const char *subclass::type() const { return staticType(); } \
const char *subclass::staticType() { return #name; }
QString name(const QVariant &location)

Definition at line 77 of file kmime_headers.cpp.

Function Documentation

KMIME_EXPORT Base * KMime::Headers::createHeader ( const QByteArray type)

Creates a header based on.

Parameters
type.If
typeis a known header type, the right object type will be created, otherwise a null pointer is returned.

Definition at line 2133 of file kmime_headers.cpp.

Variable Documentation

const encTableType KMime::Headers::encTable[]
static
Initial value:
= {
{ "7Bit", CE7Bit },
{ "8Bit", CE8Bit },
{ "quoted-printable", CEquPr },
{ "base64", CEbase64 },
{ "x-uuencode", CEuuenc },
{ "binary", CEbinary },
{ nullptr, 0}
}
quoted-printable
Definition: kmime_headers.h:62

Definition at line 1960 of file kmime_headers.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:13:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.