KMIME Library
#include "kmime_headers.h"
#include "kmime_headers_p.h"
#include "kmime_util.h"
#include "kmime_util_p.h"
#include "kmime_content.h"
#include "kmime_codecs.h"
#include "kmime_header_parsing.h"
#include "kmime_headerfactory_p.h"
#include "kmime_warning.h"
#include <QtCore/QTextCodec>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <kglobal.h>
#include <kcharsets.h>
#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, KMime::Content *parent ) : baseclass( d, parent ) {} |
#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) |
#define | kmime_register_header(subclass) namespace { const bool dummyForRegistering##subclass = registerHeaderHelper<subclass>(); } |
Functions | |
Base * | KMime::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 | |
template<typename T > | |
bool | registerHeaderHelper () |
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.
Definition in file kmime_headers.cpp.
Macro Definition Documentation
#define kmime_mk_trivial_ctor | ( | subclass, | |
baseclass | |||
) |
Value:
subclass::subclass( Content *parent ) : baseclass( parent ) \
{ \
clear(); \
} \
\
{ \
from7BitString( s ); \
} \
\
baseclass( parent ) \
{ \
fromUnicodeString( s, charset ); \
} \
\
subclass::~subclass() {} \
\
kmime_register_header( subclass )
Definition at line 77 of file kmime_headers.cpp.
#define kmime_mk_trivial_ctor_with_dptr | ( | subclass, | |
baseclass | |||
) |
Value:
subclass::subclass( Content *parent ) : baseclass( new subclass##Private, parent ) \
{ \
clear(); \
} \
\
subclass::subclass( Content *parent, const QByteArray &s ) : baseclass( new subclass##Private, parent ) \
{ \
from7BitString( s ); \
} \
\
baseclass( new subclass##Private, parent ) \
{ \
fromUnicodeString( s, charset ); \
} \
\
subclass::~subclass() {} \
\
kmime_register_header( subclass )
Definition at line 100 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; }
Definition at line 123 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; }
Definition at line 132 of file kmime_headers.cpp.
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
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.