• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KMIME Library

  • KMime
  • Headers
  • Generic
Public Member Functions | List of all members
KMime::Headers::Generic Class Reference

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Generic:
KMime::Headers::Generics::Unstructured KMime::Headers::Base

Public Member Functions

 Generic (const char *t)
 
 Generic (const char *t, Content *p)
 
 Generic (const char *t, Content *p, const QByteArray &s)
 
 Generic (const char *t, Content *p, const QString &s, const QByteArray &cs)
 
virtual void clear ()
 
virtual bool isEmpty () const
 
void setType (const char *type)
 
virtual const char * type () const
 
- Public Member Functions inherited from KMime::Headers::Generics::Unstructured
 Unstructured (Content *p, const QByteArray &s)
 
 Unstructured (Content *p, const QString &s, const QByteArray &cs)
 
 Unstructured (Content *p=0)
 
virtual QByteArray as7BitString (bool withHeaderType=true) const
 
virtual QString asUnicodeString () const
 
virtual void clear ()
 
virtual void from7BitString (const QByteArray &s)
 
virtual void fromUnicodeString (const QString &s, const QByteArray &b)
 
virtual bool isEmpty () const
 
- Public Member Functions inherited from KMime::Headers::Base
 Base (KMime::Content *parent=0)
 
virtual ~Base ()
 
virtual QByteArray as7BitString (bool withHeaderType=true) const =0
 
virtual QString asUnicodeString () const =0
 
virtual void clear ()=0
 
QByteArray defaultCharset () const
 
bool forceDefaultCharset () const
 
virtual void from7BitString (const QByteArray &s)=0
 
virtual void fromUnicodeString (const QString &s, const QByteArray &b)=0
 
bool is (const char *t) const
 
virtual bool isEmpty () const =0
 
bool isMimeHeader () const
 
bool isXHeader () const
 
KMime::Content * parent () const
 
QByteArray rfc2047Charset () const
 
void setParent (KMime::Content *parent)
 
void setRFC2047Charset (const QByteArray &cs)
 
virtual const char * type () const
 

Additional Inherited Members

- Public Types inherited from KMime::Headers::Base
typedef QList< KMime::Headers::Base * > List
 
- Protected Member Functions inherited from KMime::Headers::Base
QByteArray typeIntro () const
 

Detailed Description

Represents an arbitrary header, that can contain any header-field.

Adds a type over Unstructured.

See also
Unstructured

Definition at line 1239 of file kmime_headers.h.

Constructor & Destructor Documentation

◆ Generic() [1/5]

KMime::Headers::Generic::Generic ( )

Definition at line 1230 of file kmime_headers.cpp.

◆ Generic() [2/5]

KMime::Headers::Generic::Generic ( const char *  t)

Definition at line 1234 of file kmime_headers.cpp.

◆ Generic() [3/5]

KMime::Headers::Generic::Generic ( const char *  t,
Content *  p 
)

Definition at line 1239 of file kmime_headers.cpp.

◆ Generic() [4/5]

KMime::Headers::Generic::Generic ( const char *  t,
Content *  p,
const QByteArray &  s 
)

Definition at line 1245 of file kmime_headers.cpp.

◆ Generic() [5/5]

KMime::Headers::Generic::Generic ( const char *  t,
Content *  p,
const QString &  s,
const QByteArray &  cs 
)

Definition at line 1252 of file kmime_headers.cpp.

◆ ~Generic()

KMime::Headers::Generic::~Generic ( )

Definition at line 1259 of file kmime_headers.cpp.

Member Function Documentation

◆ clear()

void KMime::Headers::Generic::clear ( )
virtual

Deletes.

Reimplemented from KMime::Headers::Generics::Unstructured.

Definition at line 1263 of file kmime_headers.cpp.

◆ isEmpty()

bool KMime::Headers::Generic::isEmpty ( ) const
virtual

Checks if this header contains any data.

Reimplemented from KMime::Headers::Generics::Unstructured.

Definition at line 1271 of file kmime_headers.cpp.

◆ setType()

void KMime::Headers::Generic::setType ( const char *  type)

Definition at line 1281 of file kmime_headers.cpp.

◆ type()

const char * KMime::Headers::Generic::type ( ) const
virtual

Returns the type of this header (e.g.

"From").

Reimplemented from KMime::Headers::Base.

Definition at line 1276 of file kmime_headers.cpp.


The documentation for this class was generated from the following files:
  • kmime_headers.h
  • kmime_headers.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

Skip menu "KMIME Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal