libkmime
KMime::Headers::ContentType Class Reference
Represents a "Content-Type" header. More...
#include <kmime_headers.h>
Public Member Functions | |
| ContentType (Content *p) | |
| ContentType (Content *p, const TQCString &s) | |
| ContentType (Content *p, const TQString &s) | |
| virtual void | from7BitString (const TQCString &s) |
| virtual TQCString | as7BitString (bool incType=true) |
| virtual void | fromUnicodeString (const TQString &s, const TQCString &) |
| virtual TQString | asUnicodeString () |
| virtual void | clear () |
| virtual bool | isEmpty () |
| virtual const char * | type () |
| TQCString | mimeType () |
| TQCString | mediaType () |
| TQCString | subType () |
| void | setMimeType (const TQCString &s) |
| bool | isMediatype (const char *s) |
| bool | isSubtype (const char *s) |
| bool | isText () |
| bool | isPlainText () |
| bool | isHTMLText () |
| bool | isImage () |
| bool | isMultipart () |
| bool | isPartial () |
| TQCString | charset () |
| void | setCharset (const TQCString &s) |
| TQCString | boundary () |
| void | setBoundary (const TQCString &s) |
| TQString | name () |
| void | setName (const TQString &s, const TQCString &cs) |
| TQCString | id () |
| void | setId (const TQCString &s) |
| int | partialNumber () |
| int | partialCount () |
| void | setPartialParams (int total, int number) |
| contentCategory | category () |
| void | setCategory (contentCategory c) |
Protected Member Functions | |
| TQCString | getParameter (const char *name) |
| void | setParameter (const TQCString &name, const TQCString &value, bool doubleQuotes=false) |
Protected Attributes | |
| TQCString | m_imeType |
| TQCString | p_arams |
| contentCategory | c_ategory |
Detailed Description
Represents a "Content-Type" header.
Definition at line 239 of file kmime_headers.h.
Member Function Documentation
| TQCString ContentType::as7BitString | ( | bool | = 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.
| TQString 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] |
| void ContentType::from7BitString | ( | const TQCString & | ) | [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.
| void ContentType::fromUnicodeString | ( | const TQString & | , | |
| const TQCString & | ||||
| ) | [virtual] |
Parse the given string and set the charset.
Reimplemented from KMime::Headers::Base.
Definition at line 1263 of file kmime_headers.cpp.
| virtual bool KMime::Headers::ContentType::isEmpty | ( | ) | [inline, virtual] |
Do we have data?
Reimplemented from KMime::Headers::Base.
Definition at line 253 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 254 of file kmime_headers.h.
The documentation for this class was generated from the following files:
