libkmime

KMime::Headers::CDisposition Class Reference

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

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::CDisposition:
KMime::Headers::Base

List of all members.

Public Member Functions

 CDisposition (Content *p)
 CDisposition (Content *p, const TQCString &s)
 CDisposition (Content *p, const TQString &s, const TQCString &cs)
virtual void from7BitString (const TQCString &s)
virtual TQCString as7BitString (bool incType=true)
virtual void fromUnicodeString (const TQString &s, const TQCString &cs)
virtual TQString asUnicodeString ()
virtual void clear ()
virtual const char * type ()
contentDisposition disposition ()
void setDisposition (contentDisposition d)
bool isAttachment ()
TQString filename ()
void setFilename (const TQString &s)

Protected Attributes

contentDisposition d_isp
TQString f_ilename

Detailed Description

Represents a "Content-Disposition" header.

Definition at line 328 of file kmime_headers.h.


Member Function Documentation

TQCString CDisposition::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 1573 of file kmime_headers.cpp.

TQString CDisposition::asUnicodeString (  )  [virtual]

Return the decoded content of the header without the header-type.

Reimplemented from KMime::Headers::Base.

Definition at line 1616 of file kmime_headers.cpp.

virtual void KMime::Headers::CDisposition::clear (  )  [inline, virtual]

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 341 of file kmime_headers.h.

void CDisposition::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 1556 of file kmime_headers.cpp.

void CDisposition::fromUnicodeString ( const TQString &  ,
const TQCString &   
) [virtual]

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

Definition at line 1599 of file kmime_headers.cpp.

virtual const char* KMime::Headers::CDisposition::type (  )  [inline, virtual]

Return the type of this header (e.g.

"From")

Reimplemented from KMime::Headers::Base.

Definition at line 342 of file kmime_headers.h.


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