KMIME Library
KMime::Headers::Date Class Reference
Represents a "Date" header. More...
#include <kmime_headers.h>

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 1320 of file kmime_headers.h.
Member Function Documentation
| int KMime::Headers::Date::ageInDays | ( | ) | const |
Returns the age of the message.
Definition at line 1465 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 1429 of file kmime_headers.cpp.
| void KMime::Headers::Date::clear | ( | ) | [virtual] |
| KDateTime KMime::Headers::Date::dateTime | ( | ) | const |
Returns the date contained in this header.
Definition at line 1454 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 1449 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 1471 of file kmime_headers.cpp.
| void KMime::Headers::Date::setDateTime | ( | const KDateTime & | dt | ) |
Sets the date.
Definition at line 1459 of file kmime_headers.cpp.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference