• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

qca

QCA::Hex

QCA::Hex Class Reference
[QCA user API]

#include <QtCrypto>

Inheritance diagram for QCA::Hex:

Inheritance graph
[legend]

List of all members.


Detailed Description

Hexadecimal encoding / decoding.

Definition at line 164 of file qca_textfilter.h.


Public Member Functions

virtual void clear ()
virtual MemoryRegion final ()
 Hex (Direction dir=Encode)
virtual bool ok () const
virtual MemoryRegion update (const MemoryRegion &a)

Constructor & Destructor Documentation

QCA::Hex::Hex ( Direction  dir = Encode  ) 

Standard constructor.

Parameters:
dir the Direction that should be used.
Note:
The direction can be changed using the setup() call.

Definition at line 103 of file qca_textfilter.cpp.


Member Function Documentation

void QCA::Hex::clear (  )  [virtual]

Reset the internal state.

This is useful to reuse an existing Hex object

Implements QCA::Filter.

Definition at line 109 of file qca_textfilter.cpp.

MemoryRegion QCA::Hex::final (  )  [virtual]

Complete the algorithm.

Returns:
any remaining output. Because of the way hexadecimal encoding works, this will return a zero length array - any output will have been returned from the update() call.

Implements QCA::Filter.

Definition at line 194 of file qca_textfilter.cpp.

bool QCA::Hex::ok (  )  const [virtual]

Test if an update() or final() call succeeded.

Returns:
true if the previous call succeeded

Implements QCA::Filter.

Definition at line 201 of file qca_textfilter.cpp.

MemoryRegion QCA::Hex::update ( const MemoryRegion &  a  )  [virtual]

Process more data, returning the corresponding encoded or decoded (depending on the Direction set in the constructor or setup() call) representation.

If you find yourself with code that only calls this method once, you might be better off using encode() or decode(). Similarly, if the data is really a string, you might be better off using arrayToString(), encodeString(), stringToArray() or decodeString().

Parameters:
a the array containing data to process

Implements QCA::Filter.

Definition at line 115 of file qca_textfilter.cpp.


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

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • akonadi
  • Decibel
  • eigen
  • Eigen2
  • kdewin32
  • Phonon
  •     Backend
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for API Reference by doxygen 1.5.4
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