libkmime

KMime::Headers::AddressField Class Reference

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::AddressField:
KMime::Headers::Base KMime::Headers::From KMime::Headers::MailCopiesTo KMime::Headers::ReplyTo

List of all members.

Public Member Functions

 AddressField (Content *p)
 AddressField (Content *p, const TQCString &s)
 AddressField (Content *p, const TQString &s, const TQCString &cs)
 AddressField (const AddressField &a)
AddressFieldoperator= (const AddressField &a)
virtual void from7BitString (const TQCString &s)
virtual TQCString as7BitString (bool incType=true)
virtual void fromUnicodeString (const TQString &s, const TQCString &cs)
virtual TQString asUnicodeString ()
virtual void clear ()
virtual bool isEmpty ()
bool hasName ()
bool hasEmail ()
TQString name ()
TQCString nameAs7Bit ()
TQCString email ()
void setName (const TQString &s)
void setNameFrom7Bit (const TQCString &s)
void setEmail (const TQCString &s)

Protected Attributes

TQString n_ame
TQCString e_mail

Detailed Description

This class encapsulates an address-field, containing an email-address and a real name.

Definition at line 67 of file kmime_headers.h.


Member Function Documentation

TQCString AddressField::as7BitString ( bool  = 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.

TQString 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]

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 83 of file kmime_headers.h.

void AddressField::from7BitString ( const TQCString &  ) [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.

void AddressField::fromUnicodeString ( const TQString &  ,
const TQCString &   
) [virtual]

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

Definition at line 659 of file kmime_headers.cpp.

virtual bool KMime::Headers::AddressField::isEmpty ( ) [inline, virtual]

Do we have data?

Reimplemented from KMime::Headers::Base.

Definition at line 84 of file kmime_headers.h.


The documentation for this class was generated from the following files: