libkmime

KMime::Headers::UserAgent Class Reference

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::UserAgent:
KMime::Headers::Base

Public Member Functions

 UserAgent (Content *p)
 
 UserAgent (Content *p, const TQCString &s)
 
 UserAgent (Content *p, const TQString &s)
 
virtual void from7BitString (const TQCString &s)
 
virtual TQCString as7BitString (bool incType=true)
 
virtual void fromUnicodeString (const TQString &s, const TQCString &)
 
virtual TQString asUnicodeString ()
 
virtual void clear ()
 
virtual bool isEmpty ()
 
virtual const char * type ()
 
- Public Member Functions inherited from KMime::Headers::Base
 Base ()
 
 Base (KMime::Content *parent)
 
virtual ~Base ()
 
KMime::Contentparent ()
 
void setParent (KMime::Content *p)
 
TQCString rfc2047Charset ()
 
void setRFC2047Charset (const TQCString &cs)
 
TQCString defaultCS ()
 
bool forceCS ()
 
bool is (const char *t)
 
bool isMimeHeader ()
 
bool isXHeader ()
 

Protected Attributes

TQCString u_agent
 
- Protected Attributes inherited from KMime::Headers::Base
const char * e_ncCS
 
Contentp_arent
 

Additional Inherited Members

- Public Types inherited from KMime::Headers::Base
typedef TQPtrList< BaseList
 
- Protected Member Functions inherited from KMime::Headers::Base
TQCString typeIntro ()
 

Detailed Description

Represents a "User-Agent" header.

Definition at line 765 of file kmime_headers.h.

Member Function Documentation

◆ as7BitString()

TQCString KMime::Headers::UserAgent::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 1206 of file kmime_headers.cpp.

◆ asUnicodeString()

TQString KMime::Headers::UserAgent::asUnicodeString ( )
virtual

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

Reimplemented from KMime::Headers::Base.

Definition at line 1222 of file kmime_headers.cpp.

◆ clear()

virtual void KMime::Headers::UserAgent::clear ( )
inlinevirtual

Delete.

Reimplemented from KMime::Headers::Base.

Definition at line 778 of file kmime_headers.h.

◆ from7BitString()

void KMime::Headers::UserAgent::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 1199 of file kmime_headers.cpp.

◆ fromUnicodeString()

void KMime::Headers::UserAgent::fromUnicodeString ( const TQString &  ,
const TQCString &   
)
virtual

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

Definition at line 1215 of file kmime_headers.cpp.

◆ isEmpty()

virtual bool KMime::Headers::UserAgent::isEmpty ( )
inlinevirtual

Do we have data?

Reimplemented from KMime::Headers::Base.

Definition at line 779 of file kmime_headers.h.

◆ type()

virtual const char* KMime::Headers::UserAgent::type ( )
inlinevirtual

Return the type of this header (e.g.

"From")

Reimplemented from KMime::Headers::Base.

Definition at line 780 of file kmime_headers.h.


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