KMIME Library
#include <kmime_headers.h>

Protected Member Functions | |
bool | parse (const char *&scursor, const char *const send, bool isCRLF=false) |
![]() | |
QByteArray | typeIntro () const |
Additional Inherited Members | |
![]() | |
typedef QList< KMime::Headers::Base * > | List |
Detailed Description
Represents a "Content-Type" header.
- See also
- RFC 2045, section 5.
Definition at line 1031 of file kmime_headers.h.
Member Function Documentation
◆ as7BitString()
|
virtual |
Returns the encoded header.
- Parameters
-
withHeaderType Specifies whether the header-type should be included.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 1724 of file kmime_headers.cpp.
◆ boundary()
QByteArray KMime::Headers::ContentType::boundary | ( | ) | const |
Returns the boundary (for mulitpart containers).
Definition at line 1849 of file kmime_headers.cpp.
◆ category()
contentCategory KMime::Headers::ContentType::category | ( | ) | const |
Definition at line 1901 of file kmime_headers.cpp.
◆ charset()
QByteArray KMime::Headers::ContentType::charset | ( | ) | const |
Returns the charset for the associated MIME entity.
Definition at line 1834 of file kmime_headers.cpp.
◆ clear()
|
virtual |
Deletes.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 1716 of file kmime_headers.cpp.
◆ id()
QByteArray KMime::Headers::ContentType::id | ( | ) | const |
Returns the identifier of the associated MIME entity.
Definition at line 1871 of file kmime_headers.cpp.
◆ isEmpty()
|
virtual |
Checks if this header contains any data.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 1711 of file kmime_headers.cpp.
◆ isHTMLText()
bool KMime::Headers::ContentType::isHTMLText | ( | ) | const |
Returns true if the associated MIME entity is a HTML file.
Definition at line 1814 of file kmime_headers.cpp.
◆ isImage()
bool KMime::Headers::ContentType::isImage | ( | ) | const |
Returns true if the associated MIME entity is an image.
Definition at line 1819 of file kmime_headers.cpp.
◆ isMediatype()
bool KMime::Headers::ContentType::isMediatype | ( | const char * | mediatype | ) | const |
Tests if the media type equals mediatype
.
Definition at line 1784 of file kmime_headers.cpp.
◆ isMultipart()
bool KMime::Headers::ContentType::isMultipart | ( | ) | const |
Returns true if the associated MIME entity is a mulitpart container.
Definition at line 1824 of file kmime_headers.cpp.
◆ isPartial()
bool KMime::Headers::ContentType::isPartial | ( | ) | const |
Returns true if the associated MIME entity contains partial data.
- See also
- partialNumber(), partialCount()
Definition at line 1829 of file kmime_headers.cpp.
◆ isPlainText()
bool KMime::Headers::ContentType::isPlainText | ( | ) | const |
Returns true if the associated MIME entity is a plain text.
Definition at line 1809 of file kmime_headers.cpp.
◆ isSubtype()
bool KMime::Headers::ContentType::isSubtype | ( | const char * | subtype | ) | const |
Tests if the mime sub-type equals subtype
.
Definition at line 1792 of file kmime_headers.cpp.
◆ isText()
bool KMime::Headers::ContentType::isText | ( | ) | const |
Returns true if the associated MIME entity is a text.
Definition at line 1804 of file kmime_headers.cpp.
◆ mediaType()
QByteArray KMime::Headers::ContentType::mediaType | ( | ) | const |
Returns the media type (first part of the mimetype).
Definition at line 1749 of file kmime_headers.cpp.
◆ mimeType()
QByteArray KMime::Headers::ContentType::mimeType | ( | ) | const |
Returns the mimetype.
Definition at line 1743 of file kmime_headers.cpp.
◆ name()
QString KMime::Headers::ContentType::name | ( | ) | const |
Returns the name of the associated MIME entity.
Definition at line 1859 of file kmime_headers.cpp.
◆ parse()
|
protectedvirtual |
This method parses the raw header and needs to be implemented in every sub-class.
- Parameters
-
scursor Pointer to the start of the data still to parse. send Pointer to the end of the data. isCRLF true if input string is terminated with a CRLF.
Reimplemented from KMime::Headers::Generics::Parametrized.
Definition at line 1918 of file kmime_headers.cpp.
◆ partialCount()
int KMime::Headers::ContentType::partialCount | ( | ) | const |
Returns the total number of parts in a multi-part set.
- See also
- isPartial(), partialNumber()
Definition at line 1891 of file kmime_headers.cpp.
◆ partialNumber()
int KMime::Headers::ContentType::partialNumber | ( | ) | const |
Returns the position of this part in a multi-part set.
- See also
- isPartial(), partialCount()
Definition at line 1881 of file kmime_headers.cpp.
◆ setBoundary()
Sets the mulitpart container boundary.
Definition at line 1854 of file kmime_headers.cpp.
◆ setCategory()
void KMime::Headers::ContentType::setCategory | ( | contentCategory | c | ) |
Definition at line 1906 of file kmime_headers.cpp.
◆ setCharset()
Sets the charset.
Definition at line 1844 of file kmime_headers.cpp.
◆ setId()
Sets the identifier.
Definition at line 1876 of file kmime_headers.cpp.
◆ setMimeType()
Sets the mimetype and clears already existing parameters.
- Parameters
-
mimeType The new mimetype.
Definition at line 1771 of file kmime_headers.cpp.
◆ setName()
Sets the name to s
using charset cs
.
Definition at line 1864 of file kmime_headers.cpp.
◆ setPartialParams()
void KMime::Headers::ContentType::setPartialParams | ( | int | total, |
int | number ) |
Sets parameters of a partial MIME entity.
- Parameters
-
total The total number of entities in the multi-part set. number The number of this entity in a multi-part set.
Definition at line 1912 of file kmime_headers.cpp.
◆ subType()
QByteArray KMime::Headers::ContentType::subType | ( | ) | const |
Returns the mime sub-type (second part of the mimetype).
Definition at line 1760 of file kmime_headers.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.