KMime::Headers::Generics::Parametrized Class Reference

Base class for headers containing a parameter list such as "Content-Type". More...

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Generics::Parametrized:

List of all members.

Public Member Functions

virtual QByteArray as7BitString (bool withHeaderType=true) const
virtual void clear ()
virtual bool isEmpty () const
QString parameter (const QString &key) const
void setParameter (const QString &key, const QString &value)

Protected Member Functions

virtual bool parse (const char *&scursor, const char *const send, bool isCRLF=false)

Detailed Description

Base class for headers containing a parameter list such as "Content-Type".

Definition at line 704 of file kmime_headers.h.


Member Function Documentation

QByteArray KMime::Headers::Generics::Parametrized::as7BitString ( bool  withHeaderType = true  )  const [virtual]

Returns the encoded header.

Parameters:
withHeaderType Specifies whether the header-type should be included.

Implements KMime::Headers::Base.

Reimplemented in KMime::Headers::ContentType, and KMime::Headers::ContentDisposition.

Definition at line 881 of file kmime_headers.cpp.

void KMime::Headers::Generics::Parametrized::clear (  )  [virtual]

Deletes.

Implements KMime::Headers::Base.

Reimplemented in KMime::Headers::ContentType, and KMime::Headers::ContentDisposition.

Definition at line 932 of file kmime_headers.cpp.

bool KMime::Headers::Generics::Parametrized::isEmpty (  )  const [virtual]

Checks if this header contains any data.

Implements KMime::Headers::Base.

Reimplemented in KMime::Headers::ContentType, and KMime::Headers::ContentDisposition.

Definition at line 927 of file kmime_headers.cpp.

QString KMime::Headers::Generics::Parametrized::parameter ( const QString &  key  )  const

Returns the value of the specified parameter.

Parameters:
key The parameter name.

Definition at line 916 of file kmime_headers.cpp.

bool KMime::Headers::Generics::Parametrized::parse ( const char *&  scursor,
const char *const   send,
bool  isCRLF = false 
) [protected, virtual]

This method parses the raw header and needs to be implemented in every sub-class.

Parameters:
scursor Pointer to the start of the data still to parse.
send Pointer to the end of the data.
isCRLF true if input string is terminated with a CRLF.

Implements KMime::Headers::Generics::Structured.

Reimplemented in KMime::Headers::ContentType, and KMime::Headers::ContentDisposition.

Definition at line 938 of file kmime_headers.cpp.

void KMime::Headers::Generics::Parametrized::setParameter ( const QString &  key,
const QString &  value 
)

Sets the parameter key to value.

Parameters:
key The parameter name.
value The new value for key.

Definition at line 921 of file kmime_headers.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys