KMime::Headers::Date Class Reference

Represents a "Date" header. More...

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Date:

List of all members.

Public Member Functions

int ageInDays () const
virtual QByteArray as7BitString (bool withHeaderType=true) const
virtual void clear ()
KDateTime dateTime () const
virtual bool isEmpty () const
void setDateTime (const KDateTime &dt)

Protected Member Functions

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

Detailed Description

Represents a "Date" header.

See also:
RFC 2822, section 3.3.

Definition at line 1350 of file kmime_headers.h.


Member Function Documentation

int KMime::Headers::Date::ageInDays (  )  const

Returns the age of the message.

Definition at line 1492 of file kmime_headers.cpp.

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

Returns the encoded header.

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

Implements KMime::Headers::Base.

Definition at line 1456 of file kmime_headers.cpp.

void KMime::Headers::Date::clear (  )  [virtual]

Deletes.

Implements KMime::Headers::Base.

Definition at line 1470 of file kmime_headers.cpp.

KDateTime KMime::Headers::Date::dateTime (  )  const

Returns the date contained in this header.

Definition at line 1481 of file kmime_headers.cpp.

bool KMime::Headers::Date::isEmpty (  )  const [virtual]

Checks if this header contains any data.

Implements KMime::Headers::Base.

Definition at line 1476 of file kmime_headers.cpp.

bool KMime::Headers::Date::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.

Definition at line 1498 of file kmime_headers.cpp.

void KMime::Headers::Date::setDateTime ( const KDateTime &  dt  ) 

Sets the date.

Definition at line 1486 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