libkdenetwork Library API Documentation

KMime::Headers::Date Class Reference

Represents a "Date" header. More...

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Date:

Inheritance graph
[legend]
Collaboration diagram for KMime::Headers::Date:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Date (Content *p)
 Date (Content *p, time_t t)
 Date (Content *p, const QCString &s)
 Date (Content *p, const QString &s)
virtual void from7BitString (const QCString &s)
virtual QCString as7BitString (bool incType=true)
virtual void fromUnicodeString (const QString &s, const QCString &)
virtual QString asUnicodeString ()
virtual void clear ()
virtual bool isEmpty ()
virtual const char * type ()
time_t unixTime ()
void setUnixTime (time_t t)
void setUnixTime ()
QDateTime qdt ()
int ageInDays ()

Protected Attributes

time_t t_ime

Detailed Description

Represents a "Date" header.

Definition at line 660 of file kmime_headers.h.


Member Function Documentation

void KMime::Headers::Date::from7BitString const QCString s  )  [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 777 of file kmime_headers.cpp.

Referenced by fromUnicodeString().

QCString KMime::Headers::Date::as7BitString bool  incType = true  )  [virtual]
 

Return the encoded header.

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

Reimplemented from KMime::Headers::Base.

Definition at line 783 of file kmime_headers.cpp.

Referenced by asUnicodeString().

void KMime::Headers::Date::fromUnicodeString const QString s,
const QCString
[virtual]
 

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

Definition at line 792 of file kmime_headers.cpp.

References from7BitString().

QString KMime::Headers::Date::asUnicodeString  )  [virtual]
 

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

Reimplemented from KMime::Headers::Base.

Definition at line 798 of file kmime_headers.cpp.

References as7BitString().

virtual void KMime::Headers::Date::clear  )  [inline, virtual]
 

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 674 of file kmime_headers.h.

virtual bool KMime::Headers::Date::isEmpty  )  [inline, virtual]
 

Do we have data?

Reimplemented from KMime::Headers::Base.

Definition at line 675 of file kmime_headers.h.

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

Return the type of this header (e.g.

"From")

Reimplemented from KMime::Headers::Base.

Definition at line 676 of file kmime_headers.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:37:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003