libkdenetwork Library API Documentation

KMime::Headers::ContentType Class Reference

Represents a "Content-Type" header. More...

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::ContentType:

Inheritance graph
[legend]
Collaboration diagram for KMime::Headers::ContentType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ContentType (Content *p)
 ContentType (Content *p, const QCString &s)
 ContentType (Content *p, const QString &s)
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

Detailed Description

Represents a "Content-Type" header.

Definition at line 1020 of file kmime_headers.h.


Member Function Documentation

void KMime::Headers::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 1217 of file kmime_headers.cpp.

Referenced by fromUnicodeString().

QCString KMime::Headers::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 1237 of file kmime_headers.cpp.

Referenced by asUnicodeString().

void KMime::Headers::ContentType::fromUnicodeString const QString s,
const QCString
[virtual]
 

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

Definition at line 1246 of file kmime_headers.cpp.

References from7BitString().

QString KMime::Headers::ContentType::asUnicodeString  )  [virtual]
 

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.

References as7BitString().

virtual void KMime::Headers::ContentType::clear  )  [inline, virtual]
 

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 1033 of file kmime_headers.h.

virtual bool KMime::Headers::ContentType::isEmpty  )  [inline, virtual]
 

Do we have data?

Reimplemented from KMime::Headers::Base.

Definition at line 1034 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 1035 of file kmime_headers.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:38:11 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003