libkmime
KMime::Headers::ContentType Class Reference
#include <kmime_headers.h>
Inheritance diagram for KMime::Headers::ContentType:

Detailed Description
Represents a "Content-Type" header.
Definition at line 1024 of file kmime_headers.h.
Public Member Functions | |
ContentType () | |
ContentType (Content *p) | |
ContentType (Content *p, const QCString &s) | |
ContentType (Content *p, const QString &s) | |
~ContentType () | |
virtual void | from7BitString (const QCString &s) |
virtual QCString | as7BitString (bool incType=true) |
virtual void | fromUnicodeString (const QString &s, const QCString &) |
virtual QString | asUnicodeString () |
virtual void | clear () |
virtual bool | isEmpty () |
virtual const char * | type () |
QCString | mimeType () |
QCString | mediaType () |
QCString | subType () |
void | setMimeType (const QCString &s) |
bool | isMediatype (const char *s) |
bool | isSubtype (const char *s) |
bool | isText () |
bool | isPlainText () |
bool | isHTMLText () |
bool | isImage () |
bool | isMultipart () |
bool | isPartial () |
QCString | charset () |
void | setCharset (const QCString &s) |
QCString | boundary () |
void | setBoundary (const QCString &s) |
QString | name () |
void | setName (const QString &s, const QCString &cs) |
QCString | id () |
void | setId (const QCString &s) |
int | partialNumber () |
int | partialCount () |
void | setPartialParams (int total, int number) |
contentCategory | category () |
void | setCategory (contentCategory c) |
Protected Member Functions | |
QCString | getParameter (const char *name) |
void | setParameter (const QCString &name, const QCString &value, bool doubleQuotes=false) |
Protected Attributes | |
QCString | m_imeType |
QCString | p_arams |
contentCategory | c_ategory |
Member Function Documentation
|
Return the encoded header. The parameter specifies whether the header-type should be included. Reimplemented from KMime::Headers::Base. Definition at line 1237 of file kmime_headers.cpp. |
|
Return the decoded content of the header without the header-type.
Reimplemented from KMime::Headers::Base. Definition at line 1252 of file kmime_headers.cpp. |
|
Delete.
Reimplemented from KMime::Headers::Base. Definition at line 1037 of file kmime_headers.h. |
|
Parse the given string. Take care of RFC2047-encoded strings. A default charset is given. If the last parameter is true the default charset is used in any case Reimplemented from KMime::Headers::Base. Definition at line 1217 of file kmime_headers.cpp. |
|
Parse the given string and set the charset.
Reimplemented from KMime::Headers::Base. Definition at line 1246 of file kmime_headers.cpp. |
|
Do we have data?
Reimplemented from KMime::Headers::Base. Definition at line 1038 of file kmime_headers.h. |
|
Return the type of this header (e.g. "From") Reimplemented from KMime::Headers::Base. Definition at line 1039 of file kmime_headers.h. |
The documentation for this class was generated from the following files: