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 1026 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
| void ContentType::from7BitString | ( | const QCString & | s | ) | [virtual] |
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 1234 of file kmime_headers.cpp.
| QCString ContentType::as7BitString | ( | bool | incType = true |
) | [virtual] |
Return the encoded header.
The parameter specifies whether the header-type should be included.
Reimplemented from KMime::Headers::Base.
Definition at line 1254 of file kmime_headers.cpp.
| void ContentType::fromUnicodeString | ( | const QString & | s, | |
| const QCString & | ||||
| ) | [virtual] |
Parse the given string and set the charset.
Reimplemented from KMime::Headers::Base.
Definition at line 1263 of file kmime_headers.cpp.
| QString ContentType::asUnicodeString | ( | ) | [virtual] |
Return the decoded content of the header without the header-type.
Reimplemented from KMime::Headers::Base.
Definition at line 1269 of file kmime_headers.cpp.
| virtual void KMime::Headers::ContentType::clear | ( | ) | [inline, virtual] |
| virtual bool KMime::Headers::ContentType::isEmpty | ( | ) | [inline, virtual] |
Do we have data?
Reimplemented from KMime::Headers::Base.
Definition at line 1040 of file kmime_headers.h.
| virtual const char* KMime::Headers::ContentType::type | ( | ) | [inline, virtual] |
Return the type of this header (e.g.
"From")
Reimplemented from KMime::Headers::Base.
Definition at line 1041 of file kmime_headers.h.
The documentation for this class was generated from the following files:

