libkmime
KMime::Headers::AddressField Class Reference
#include <kmime_headers.h>
Inheritance diagram for KMime::Headers::AddressField:

Detailed Description
This class encapsulates an address-field, containing an email-address and a real name.
Definition at line 854 of file kmime_headers.h.
Public Member Functions | |
AddressField () | |
AddressField (Content *p) | |
AddressField (Content *p, const QCString &s) | |
AddressField (Content *p, const QString &s, const QCString &cs) | |
AddressField (const AddressField &a) | |
~AddressField () | |
AddressField & | operator= (const AddressField &a) |
virtual void | from7BitString (const QCString &s) |
virtual QCString | as7BitString (bool incType=true) |
virtual void | fromUnicodeString (const QString &s, const QCString &cs) |
virtual QString | asUnicodeString () |
virtual void | clear () |
virtual bool | isEmpty () |
bool | hasName () |
bool | hasEmail () |
QString | name () |
QCString | nameAs7Bit () |
QCString | email () |
void | setName (const QString &s) |
void | setNameFrom7Bit (const QCString &s) |
void | setEmail (const QCString &s) |
Protected Attributes | |
QString | n_ame |
QCString | e_mail |
Member Function Documentation
void AddressField::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 579 of file kmime_headers.cpp.
QCString AddressField::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 634 of file kmime_headers.cpp.
void AddressField::fromUnicodeString | ( | const QString & | s, | |
const QCString & | cs | |||
) | [virtual] |
Parse the given string and set the charset.
Reimplemented from KMime::Headers::Base.
Definition at line 659 of file kmime_headers.cpp.
QString AddressField::asUnicodeString | ( | ) | [virtual] |
Return the decoded content of the header without the header-type.
Reimplemented from KMime::Headers::Base.
Definition at line 714 of file kmime_headers.cpp.
virtual void KMime::Headers::AddressField::clear | ( | ) | [inline, virtual] |
virtual bool KMime::Headers::AddressField::isEmpty | ( | ) | [inline, virtual] |
Do we have data?
Reimplemented from KMime::Headers::Base.
Definition at line 871 of file kmime_headers.h.
The documentation for this class was generated from the following files: