KMIME Library
kmime_headers.cpp
Go to the documentation of this file.
106 subclass::subclass( Content *parent, const QByteArray &s ) : baseclass( new subclass##Private, parent ) \
241 Unstructured::Unstructured( Content *p, const QByteArray &s ) : Base( new UnstructuredPrivate, p )
246 Unstructured::Unstructured( Content *p, const QString &s, const QByteArray &cs ) : Base( new UnstructuredPrivate, p )
309 Structured::Structured( Content *p, const QString &s, const QByteArray &cs ) : Base( new StructuredPrivate, p )
355 Address::Address( Content *p, const QString &s, const QByteArray &cs ) : Structured( new AddressPrivate, p )
This file is part of the API for handling MIME data and defines the Codec class.
Base class for headers that deal with exactly one mailbox (e.g.
Definition: kmime_headers.h:456
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1691
int partialNumber() const
Returns the position of this part in a multi-part set.
Definition: kmime_headers.cpp:1881
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:2178
contentEncoding encoding() const
Returns the encoding specified in this header.
Definition: kmime_headers.cpp:2088
Represents a "Content-Disposition" header.
Definition: kmime_headers.h:1182
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1594
QByteArray subType() const
Returns the mime sub-type (second part of the mimetype).
Definition: kmime_headers.cpp:1760
QByteArray address() const
Returns a string representation of the email address, without the angle brackets. ...
Definition: kmime_header_parsing.cpp:115
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1517
bool isMultipart() const
Returns true if the associated MIME entity is a mulitpart container.
Definition: kmime_headers.cpp:1824
This file is part of the API for handling MIME data and defines the Content class.
QByteArray parameter() const
Returns the control message parameter.
Definition: kmime_headers.cpp:1352
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1615
bool isText() const
Returns true if the associated MIME entity is a text.
Definition: kmime_headers.cpp:1804
bool neverCopy() const
Returns true if a mail copy was explicitly denied.
Definition: kmime_headers.cpp:1453
Represents an (email address, display name) pair according RFC 2822, section 3.4. ...
Definition: kmime_header_parsing.h:69
Base class for headers that deal with (possibly multiple) addresses, but don't allow groups...
Definition: kmime_headers.h:389
bool isPlainText() const
Returns true if the associated MIME entity is a plain text.
Definition: kmime_headers.cpp:1809
void setMimeType(const QByteArray &mimeType)
Sets the mimetype and clears already existing parameters.
Definition: kmime_headers.cpp:1771
QString prettyAddress() const
Returns a assembled display name / address string of the following form: "Display Name <address>"...
Definition: kmime_header_parsing.cpp:176
bool isPartial() const
Returns true if the associated MIME entity contains partial data.
Definition: kmime_headers.cpp:1829
QByteArray as7BitString(const QByteArray &encCharset) const
Returns a 7bit transport encoded representation of this mailbox.
Definition: kmime_header_parsing.cpp:208
int numberOfLines() const
Returns the number of lines, undefined if isEmpty() returns true.
Definition: kmime_headers.cpp:1680
bool isCancel() const
Returns true if this is a cancel control message.
Definition: kmime_headers.cpp:1357
virtual bool isEmpty() const =0
Checks if this header contains any data.
Definition: boolflags.h:34
bool isSubtype(const char *subtype) const
Tests if the mime sub-type equals subtype.
Definition: kmime_headers.cpp:1792
KDateTime dateTime() const
Returns the date contained in this header.
Definition: kmime_headers.cpp:1522
void setName(const QString &s, const QByteArray &cs)
Sets the name to s using charset cs.
Definition: kmime_headers.cpp:1864
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1918
void setDisposition(contentDisposition disp)
Sets the content disposition.
Definition: kmime_headers.cpp:2195
Base class for all address related headers.
Definition: kmime_headers.h:366
virtual QString asUnicodeString() const =0
Returns the decoded content of the header without the header-type.
Definition: kmime_header_parsing.cpp:229
Base class for headers that deal with (possibly multiple) addresses, allowing groups.
Definition: kmime_headers.h:480
bool isHTMLText() const
Returns true if the associated MIME entity is a HTML file.
Definition: kmime_headers.cpp:1814
Definition: kmime_header_parsing.h:39
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1342
Base * createHeader(const QByteArray &type)
Creates a header based on.
Definition: kmime_headers.cpp:2263
void setCancel(const QByteArray &msgid)
Changes this header into a cancel control message for the given message-id.
Definition: kmime_headers.cpp:1362
Definition: kmime_header_parsing.cpp:49
contentDisposition
Various possible values for the "Content-Disposition" header.
Definition: kmime_headers.h:86
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1177
void setDecoded(bool decoded=true)
Set whether the Content containing this header is already decoded.
Definition: kmime_headers.cpp:2111
Represents an arbitrary header, that can contain any header-field.
Definition: kmime_headers.h:1239
QByteArray charset() const
Returns the charset for the associated MIME entity.
Definition: kmime_headers.cpp:1834
void setAddress(const AddrSpec &addr)
Sets the email address.
Definition: kmime_header_parsing.cpp:136
void setGroups(const QList< QByteArray > &groups)
Sets the newsgroup list.
Definition: kmime_headers.cpp:1604
Base class for headers containing a parameter list such as "Content-Type".
Definition: kmime_headers.h:699
Base class for headers containing a dot atom.
Definition: kmime_headers.h:676
QByteArray rfc2047Charset() const
Returns the charset that is used for RFC2047-encoding.
Definition: kmime_headers.cpp:178
virtual const char * type() const
Returns the type of this header (e.g.
Definition: kmime_headers.cpp:1276
bool decoded() const
Returns whether the Content containing this header is already decoded.
Definition: kmime_headers.cpp:2106
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1171
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1436
Base class for headers containing a list of phrases.
Definition: kmime_headers.h:648
void setNumberOfLines(int lines)
Sets the number of lines to lines.
Definition: kmime_headers.cpp:1685
void setParent(KMime::Content *parent)
Sets the parent for this header to parent.
Definition: kmime_headers.cpp:173
This file is part of the API for handling MIME data and defines the various header classes: ...
bool isImage() const
Returns true if the associated MIME entity is an image.
Definition: kmime_headers.cpp:1819
virtual QString asUnicodeString() const
Returns the decoded content of the header without the header-type.
Definition: kmime_headers.cpp:1661
void setPartialParams(int total, int number)
Sets parameters of a partial MIME entity.
Definition: kmime_headers.cpp:1912
virtual QByteArray as7BitString(bool withHeaderType=true) const
Returns the encoded header.
Definition: kmime_headers.cpp:1724
Represents a "Content-Location" header.
Definition: kmime_headers.h:1295
void setBoundary(const QByteArray &s)
Sets the mulitpart container boundary.
Definition: kmime_headers.cpp:1854
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1539
virtual bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:2123
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1271
KMime::Content * parent() const
Returns the parent of this header.
Definition: kmime_headers.cpp:168
bool isCrossposted() const
Returns true if this message has been cross-posted, i.e.
Definition: kmime_headers.cpp:1610
QByteArray typeIntro() const
Helper method, returns the header prefix including ":".
Definition: kmime_headers.cpp:222
QString name() const
Returns the name of the associated MIME entity.
Definition: kmime_headers.cpp:1859
virtual bool isEmpty() const
Checks if this header contains any data.
Definition: kmime_headers.cpp:1675
Represents a "Content-Description" header.
Definition: kmime_headers.h:1286
virtual void fromUnicodeString(const QString &s, const QByteArray &b)
Parses the given string and set the charset.
Definition: kmime_headers.cpp:1575
virtual void fromUnicodeString(const QString &s, const QByteArray &b)=0
Parses the given string and set the charset.
QByteArray boundary() const
Returns the boundary (for mulitpart containers).
Definition: kmime_headers.cpp:1849
bool needToEncode() const
Returns whether the Content containing this header needs to be encoded (i.e., if decoded() is true an...
Definition: kmime_headers.cpp:2117
bool alwaysCopy() const
Returns true if a mail copy was explicitly requested.
Definition: kmime_headers.cpp:1441
int partialCount() const
Returns the total number of parts in a multi-part set.
Definition: kmime_headers.cpp:1891
Base class for headers which deal with a single msg-id.
Definition: kmime_headers.h:584
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1369
bool isMediatype(const char *mediatype) const
Tests if the media type equals mediatype.
Definition: kmime_headers.cpp:1784
bool forceDefaultCharset() const
Returns if the default charset is mandatory.
Definition: kmime_headers.cpp:192
virtual QByteArray as7BitString(bool withHeaderType=true) const =0
Returns the encoded header.
QByteArray id() const
Returns the identifier of the associated MIME entity.
Definition: kmime_headers.cpp:1871
void setRFC2047Charset(const QByteArray &cs)
Sets the charset for RFC2047-encoding.
Definition: kmime_headers.cpp:187
Abstract base class for unstructured header fields (e.g.
Definition: kmime_headers.h:270
This file is part of the API for handling MIME data and defines the HeaderFactory class...
Content * parent() const
Returns the parent content object, or 0 if the content doesn't have a parent.
Definition: kmime_content.cpp:974
Base class for headers which deal with a list of msg-id's.
Definition: kmime_headers.h:545
contentDisposition disposition() const
Returns the content disposition.
Definition: kmime_headers.cpp:2190
QString filename() const
Returns the suggested filename for the associated MIME part.
Definition: kmime_headers.cpp:2201
bool hasName() const
Returns true if this mailbox has a display name.
Definition: kmime_header_parsing.cpp:171
QByteArray mediaType() const
Returns the media type (first part of the mimetype).
Definition: kmime_headers.cpp:1749
QList< QByteArray > groups() const
Returns the list of newsgroups.
Definition: kmime_headers.cpp:1599
Represents a "Content-Transfer-Encoding" header.
Definition: kmime_headers.h:890
virtual QString asUnicodeString() const
Returns the decoded content of the header without the header-type.
Definition: kmime_headers.cpp:1414
Base class for structured header fields.
Definition: kmime_headers.h:329
Base class for headers which deal with a single atom.
Definition: kmime_headers.h:615
virtual bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:1465
virtual const char * type() const
Returns the type of this header (e.g.
Definition: kmime_headers.cpp:202
virtual void from7BitString(const QByteArray &s)=0
Parses the given string.
bool parse(const char *&scursor, const char *const send, bool isCRLF=false)
This method parses the raw header and needs to be implemented in every sub-class. ...
Definition: kmime_headers.cpp:2211
void setFilename(const QString &filename)
Sets the suggested filename for the associated MIME part.
Definition: kmime_headers.cpp:2206
contentEncoding
Various possible values for the "Content-Transfer-Encoding" header.
Definition: kmime_headers.h:74
Base(KMime::Content *parent=0)
Creates an empty header with a parent-content.
Definition: kmime_headers.cpp:148
virtual QString asUnicodeString() const
Returns the decoded content of the header without the header-type.
Definition: kmime_headers.cpp:1583
This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Fri Apr 22 2016 18:36:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2016 The KDE developers.
Generated on Fri Apr 22 2016 18:36:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.