#include <QtCrypto>
Inheritance diagram for QCA::TextFilter:
Public Member Functions | |
TextFilter (Direction dir) | |
void | setup (Direction dir) |
Direction | direction () const |
MemoryRegion | encode (const MemoryRegion &a) |
MemoryRegion | decode (const MemoryRegion &a) |
QString | arrayToString (const MemoryRegion &a) |
MemoryRegion | stringToArray (const QString &s) |
QString | encodeString (const QString &s) |
QString | decodeString (const QString &s) |
Protected Attributes | |
Direction | _dir |
This differs from Filter in that it has the concept of an algorithm that works in two directions, and supports operations on QString arguments.
|
Standard constructor.
|
|
Reset the TextFilter.
|
|
The direction the TextFilter is set up to use.
|
|
Process an array in the "forward" direction, returning an array. This method runs in the forward direction, so for something like a Base64 encoding, it takes the "native" array, and returns that array encoded in base64.
|
|
Process an array in the "reverse" direction, returning an array. This method runs in the reverse direction, so for something like a Base64 encoding, it takes a Base64 encoded array, and returns the "native" representation.
|
|
Process an array in the "forward" direction, returning a QString. This is equivalent to encode(), except that it returns a QString, rather than a byte array.
|
|
Process an string in the "reverse" direction, returning a byte array. This is equivalent to decode(), except that it takes a QString, rather than a byte array.
|
|
Process a string in the "forward" direction, returning a string. This is equivalent to encode(), except that it takes and returns a QString, rather than byte arrays.
|
|
Process a string in the "reverse" direction, returning a string. This is equivalent to decode(), except that it takes and returns a QString, rather than byte arrays.
|
|
Internal state variable for the Direction that the filter operates in.
|