libkmime

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Base:
KMime::Headers::Control KMime::Headers::Date KMime::Headers::Generics::GStructured KMime::Headers::Generics::GUnstructured KMime::Headers::Lines KMime::Headers::Newsgroups KMime::Headers::UserAgent KMime::Headers::Generics::GToken KMime::Headers::Generic KMime::Headers::Organization KMime::Headers::Subject KMime::Headers::FollowUpTo

Public Types

typedef TQPtrList< BaseList
 

Public Member Functions

 Base ()
 
 Base (KMime::Content *parent)
 
virtual ~Base ()
 
KMime::Contentparent ()
 
void setParent (KMime::Content *p)
 
virtual void from7BitString (const TQCString &)
 
virtual TQCString as7BitString (bool=true)
 
TQCString rfc2047Charset ()
 
void setRFC2047Charset (const TQCString &cs)
 
TQCString defaultCS ()
 
bool forceCS ()
 
virtual void fromUnicodeString (const TQString &, const TQCString &)
 
virtual TQString asUnicodeString ()
 
virtual void clear ()
 
virtual bool isEmpty ()
 
virtual const char * type ()
 
bool is (const char *t)
 
bool isMimeHeader ()
 
bool isXHeader ()
 

Protected Member Functions

TQCString typeIntro ()
 

Protected Attributes

const char * e_ncCS
 
Contentp_arent
 

Detailed Description

Baseclass of all header-classes.

It represents a header-field as described in RFC-822.

Definition at line 111 of file kmime_headers.h.

Constructor & Destructor Documentation

◆ Base() [1/2]

KMime::Headers::Base::Base ( )
inline

Create an empty header.

Definition at line 117 of file kmime_headers.h.

◆ Base() [2/2]

KMime::Headers::Base::Base ( KMime::Content parent)
inline

Create an empty header with a parent-content.

Definition at line 120 of file kmime_headers.h.

◆ ~Base()

virtual KMime::Headers::Base::~Base ( )
inlinevirtual

Destructor.

Definition at line 123 of file kmime_headers.h.

Member Function Documentation

◆ as7BitString()

virtual TQCString KMime::Headers::Base::as7BitString ( bool  = true)
inlinevirtual

Return the encoded header.

The parameter specifies whether the header-type should be included.

Reimplemented in KMime::Headers::Generics::GUnstructured, KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, and KMime::Headers::Control.

Definition at line 138 of file kmime_headers.h.

◆ asUnicodeString()

virtual TQString KMime::Headers::Base::asUnicodeString ( )
inlinevirtual

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

Reimplemented in KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, KMime::Headers::Control, and KMime::Headers::Generics::GUnstructured.

Definition at line 157 of file kmime_headers.h.

◆ clear()

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

◆ defaultCS()

TQCString Base::defaultCS ( )

Return the default charset.

Definition at line 71 of file kmime_headers.cpp.

◆ forceCS()

bool Base::forceCS ( )

Return if the default charset is mandatory.

Definition at line 65 of file kmime_headers.cpp.

◆ from7BitString()

virtual void KMime::Headers::Base::from7BitString ( const TQCString &  )
inlinevirtual

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 in KMime::Headers::Generics::GUnstructured, KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, and KMime::Headers::Control.

Definition at line 134 of file kmime_headers.h.

◆ fromUnicodeString()

virtual void KMime::Headers::Base::fromUnicodeString ( const TQString &  ,
const TQCString &   
)
inlinevirtual

◆ is()

bool KMime::Headers::Base::is ( const char *  t)
inline

Check if this header is of type t.

Definition at line 169 of file kmime_headers.h.

◆ isEmpty()

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

◆ isMimeHeader()

bool KMime::Headers::Base::isMimeHeader ( )
inline

Check if this header is a MIME header.

Definition at line 172 of file kmime_headers.h.

◆ isXHeader()

bool KMime::Headers::Base::isXHeader ( )
inline

Check if this header is a X-Header.

Definition at line 175 of file kmime_headers.h.

◆ parent()

KMime::Content* KMime::Headers::Base::parent ( )
inline

Return the parent of this header.

Definition at line 126 of file kmime_headers.h.

◆ rfc2047Charset()

TQCString Base::rfc2047Charset ( )

Return the charset that is used for RFC2047-encoding.

Definition at line 50 of file kmime_headers.cpp.

◆ setParent()

void KMime::Headers::Base::setParent ( KMime::Content p)
inline

Set the parent for this header.

Definition at line 129 of file kmime_headers.h.

◆ setRFC2047Charset()

void Base::setRFC2047Charset ( const TQCString &  cs)

Set the charset for RFC2047-encoding.

Definition at line 59 of file kmime_headers.cpp.

◆ type()

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

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