libkmime

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::ContentType:
KMime::Headers::Base

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)
Public Member Functions inherited from KMime::Headers::Base
 Base ()
 Base (KMime::Content *parent)
virtual ~Base ()
KMime::Contentparent ()
void setParent (KMime::Content *p)
TQCString rfc2047Charset ()
void setRFC2047Charset (const TQCString &cs)
TQCString defaultCS ()
bool forceCS ()
bool is (const char *t)
bool isMimeHeader ()
bool isXHeader ()

Protected Member Functions

TQCString getParameter (const char *name)
void setParameter (const TQCString &name, const TQCString &value, bool doubleQuotes=false)
Protected Member Functions inherited from KMime::Headers::Base
TQCString typeIntro ()

Protected Attributes

TQCString m_imeType
TQCString p_arams
contentCategory c_ategory
Protected Attributes inherited from KMime::Headers::Base
const char * e_ncCS
Contentp_arent

Additional Inherited Members

Public Types inherited from KMime::Headers::Base
typedef TQPtrList< BaseList

Detailed Description

Represents a "Content-Type" header.

Definition at line 239 of file kmime_headers.h.

Constructor & Destructor Documentation

◆ ContentType() [1/4]

KMime::Headers::ContentType::ContentType ( )
inline

Definition at line 242 of file kmime_headers.h.

◆ ContentType() [2/4]

KMime::Headers::ContentType::ContentType ( Content * p)
inline

Definition at line 243 of file kmime_headers.h.

◆ ContentType() [3/4]

KMime::Headers::ContentType::ContentType ( Content * p,
const TQCString & s )
inline

Definition at line 244 of file kmime_headers.h.

◆ ContentType() [4/4]

KMime::Headers::ContentType::ContentType ( Content * p,
const TQString & s )
inline

Definition at line 245 of file kmime_headers.h.

◆ ~ContentType()

KMime::Headers::ContentType::~ContentType ( )
inline

Definition at line 246 of file kmime_headers.h.

Member Function Documentation

◆ as7BitString()

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.

◆ asUnicodeString()

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.

◆ boundary()

TQCString ContentType::boundary ( )

Definition at line 1376 of file kmime_headers.cpp.

◆ category()

contentCategory KMime::Headers::ContentType::category ( )
inline

Definition at line 285 of file kmime_headers.h.

◆ charset()

TQCString ContentType::charset ( )

Definition at line 1360 of file kmime_headers.cpp.

◆ clear()

virtual void KMime::Headers::ContentType::clear ( )
inlinevirtual

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 252 of file kmime_headers.h.

◆ from7BitString()

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.

◆ fromUnicodeString()

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.

◆ getParameter()

TQCString ContentType::getParameter ( const char * name)
protected

Definition at line 1452 of file kmime_headers.cpp.

◆ id()

TQCString ContentType::id ( )

Definition at line 1410 of file kmime_headers.cpp.

◆ isEmpty()

virtual bool KMime::Headers::ContentType::isEmpty ( )
inlinevirtual

Do we have data?

Reimplemented from KMime::Headers::Base.

Definition at line 253 of file kmime_headers.h.

◆ isHTMLText()

bool ContentType::isHTMLText ( )

Definition at line 1336 of file kmime_headers.cpp.

◆ isImage()

bool ContentType::isImage ( )

Definition at line 1342 of file kmime_headers.cpp.

◆ isMediatype()

bool ContentType::isMediatype ( const char * s)

Definition at line 1307 of file kmime_headers.cpp.

◆ isMultipart()

bool ContentType::isMultipart ( )

Definition at line 1348 of file kmime_headers.cpp.

◆ isPartial()

bool ContentType::isPartial ( )

Definition at line 1354 of file kmime_headers.cpp.

◆ isPlainText()

bool ContentType::isPlainText ( )

Definition at line 1330 of file kmime_headers.cpp.

◆ isSubtype()

bool ContentType::isSubtype ( const char * s)

Definition at line 1313 of file kmime_headers.cpp.

◆ isText()

bool ContentType::isText ( )

Definition at line 1324 of file kmime_headers.cpp.

◆ mediaType()

TQCString ContentType::mediaType ( )

Definition at line 1275 of file kmime_headers.cpp.

◆ mimeType()

TQCString KMime::Headers::ContentType::mimeType ( )
inline

Definition at line 258 of file kmime_headers.h.

◆ name()

TQString ContentType::name ( )

Definition at line 1388 of file kmime_headers.cpp.

◆ partialCount()

int ContentType::partialCount ( )

Definition at line 1432 of file kmime_headers.cpp.

◆ partialNumber()

int ContentType::partialNumber ( )

Definition at line 1422 of file kmime_headers.cpp.

◆ setBoundary()

void ContentType::setBoundary ( const TQCString & s)

Definition at line 1382 of file kmime_headers.cpp.

◆ setCategory()

void KMime::Headers::ContentType::setCategory ( contentCategory c)
inline

Definition at line 286 of file kmime_headers.h.

◆ setCharset()

void ContentType::setCharset ( const TQCString & s)

Definition at line 1370 of file kmime_headers.cpp.

◆ setId()

void ContentType::setId ( const TQCString & s)

Definition at line 1416 of file kmime_headers.cpp.

◆ setMimeType()

void ContentType::setMimeType ( const TQCString & s)

Definition at line 1295 of file kmime_headers.cpp.

◆ setName()

void ContentType::setName ( const TQString & s,
const TQCString & cs )

Definition at line 1395 of file kmime_headers.cpp.

◆ setParameter()

void ContentType::setParameter ( const TQCString & name,
const TQCString & value,
bool doubleQuotes = false )
protected

Definition at line 1468 of file kmime_headers.cpp.

◆ setPartialParams()

void ContentType::setPartialParams ( int total,
int number )

Definition at line 1442 of file kmime_headers.cpp.

◆ subType()

TQCString ContentType::subType ( )

Definition at line 1285 of file kmime_headers.cpp.

◆ type()

virtual const char * KMime::Headers::ContentType::type ( )
inlinevirtual

Return the type of this header (e.g.

"From")

Reimplemented from KMime::Headers::Base.

Definition at line 254 of file kmime_headers.h.

Member Data Documentation

◆ c_ategory

contentCategory KMime::Headers::ContentType::c_ategory
protected

Definition at line 292 of file kmime_headers.h.

◆ m_imeType

TQCString KMime::Headers::ContentType::m_imeType
protected

Definition at line 291 of file kmime_headers.h.

◆ p_arams

TQCString KMime::Headers::ContentType::p_arams
protected

Definition at line 291 of file kmime_headers.h.


The documentation for this class was generated from the following files: