• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KMIME Library

KMime::IdentityCodec

KMime::IdentityCodec Class Reference

A class representing the Identify codec. More...

#include <kmime_codec_identity.h>

Inheritance diagram for KMime::IdentityCodec:

Inheritance graph
[legend]

List of all members.


Public Member Functions

QByteArray decode (const QByteArray &src, bool withCRLF=false) const
QByteArray encode (const QByteArray &src, bool withCRLF=false) const
Decoder * makeDecoder (bool withCRLF=false) const
Encoder * makeEncoder (bool withCRLF=false) const
int maxDecodedSizeFor (int insize, bool withCRLF) const
int maxEncodedSizeFor (int insize, bool withCRLF) const
 ~IdentityCodec ()

Protected Member Functions

 IdentityCodec ()

Detailed Description

A class representing the Identify codec.

Definition at line 48 of file kmime_codec_identity.h.


Constructor & Destructor Documentation

KMime::IdentityCodec::IdentityCodec (  )  [inline, protected]

Constructs the Identity codec.

Definition at line 55 of file kmime_codec_identity.h.

KMime::IdentityCodec::~IdentityCodec (  )  [inline]

Destroys the codec.

Definition at line 61 of file kmime_codec_identity.h.


Member Function Documentation

QByteArray KMime::IdentityCodec::decode ( const QByteArray &  src,
bool  withCRLF = false 
) const [virtual]

Codec::decode()

Reimplemented from KMime::Codec.

Definition at line 104 of file kmime_codec_identity.cpp.

QByteArray KMime::IdentityCodec::encode ( const QByteArray &  src,
bool  withCRLF = false 
) const [virtual]

Codec::encode()

Reimplemented from KMime::Codec.

Definition at line 98 of file kmime_codec_identity.cpp.

Decoder * KMime::IdentityCodec::makeDecoder ( bool  withCRLF = false  )  const [virtual]

Creates the decoder for the codec.

Parameters:
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
a pointer to an instance of the codec's decoder.

Implements KMime::Codec.

Definition at line 77 of file kmime_codec_identity.cpp.

Encoder * KMime::IdentityCodec::makeEncoder ( bool  withCRLF = false  )  const [virtual]

Creates the encoder for the codec.

Parameters:
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
a pointer to an instance of the codec's encoder.

Implements KMime::Codec.

Definition at line 72 of file kmime_codec_identity.cpp.

int KMime::IdentityCodec::maxDecodedSizeFor ( int  insize,
bool  withCRLF 
) const [inline, virtual]

Computes the maximum size, in characters, needed for the deccoding.

Parameters:
insize is the number of input characters to be decoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the decoding.

Implements KMime::Codec.

Reimplemented in KMime::BinaryCodec.

Definition at line 95 of file kmime_codec_identity.h.

int KMime::IdentityCodec::maxEncodedSizeFor ( int  insize,
bool  withCRLF 
) const [inline, virtual]

Computes the maximum size, in characters, needed for the encoding.

Parameters:
insize is the number of input characters to be encoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the encoding.

Implements KMime::Codec.

Reimplemented in KMime::BinaryCodec.

Definition at line 82 of file kmime_codec_identity.h.


The documentation for this class was generated from the following files:
  • kmime_codec_identity.h
  • kmime_codec_identity.cpp

KMIME Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal