33 #ifndef QCA_TEXTFILTER_H
34 #define QCA_TEXTFILTER_H
215 bool ok()
const override;
310 bool ok()
const override;
Base64 encoding / decoding
Definition: qca_textfilter.h:233
bool ok() const override
Test if an update() or final() call succeeded.
bool lineBreaksEnabled() const
Returns true if line breaks are enabled.
void setLineBreaksColumn(int column)
Sets the column that linebreaks should be inserted at when encoding.
void clear() override
Reset the internal state.
Base64(Direction dir=Encode)
Standard constructor.
void setLineBreaksEnabled(bool b)
Sets line break mode.
int lineBreaksColumn() const
Returns the line break column.
MemoryRegion update(const MemoryRegion &a) override
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in ...
General superclass for filtering transformation algorithms.
Definition: qca_core.h:1108
Hexadecimal encoding / decoding.
Definition: qca_textfilter.h:165
void clear() override
Reset the internal state.
Hex(Direction dir=Encode)
Standard constructor.
MemoryRegion update(const MemoryRegion &a) override
Process more data, returning the corresponding encoded or decoded (depending on the Direction set in ...
bool ok() const override
Test if an update() or final() call succeeded.
Array of bytes that may be optionally secured.
Definition: qca_tools.h:91
Superclass for text based filtering algorithms.
Definition: qca_textfilter.h:52
MemoryRegion encode(const MemoryRegion &a)
Process an array in the "forward" direction, returning an array.
QString arrayToString(const MemoryRegion &a)
Process an array in the "forward" direction, returning a QString.
Direction direction() const
The direction the TextFilter is set up to use.
Direction _dir
Internal state variable for the Direction that the filter operates in.
Definition: qca_textfilter.h:154
QString decodeString(const QString &s)
Process a string in the "reverse" direction, returning a string.
QString encodeString(const QString &s)
Process a string in the "forward" direction, returning a string.
void setup(Direction dir)
Reset the TextFilter.
TextFilter(Direction dir)
Standard constructor.
MemoryRegion decode(const MemoryRegion &a)
Process an array in the "reverse" direction, returning an array.
MemoryRegion stringToArray(const QString &s)
Process an string in the "reverse" direction, returning a byte array.
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:41
Direction
Direction settings for symmetric algorithms.
Definition: qca_core.h:141
@ Encode
Operate in the "forward" direction; for example, encrypting.
Definition: qca_core.h:142
Header file for core QCA infrastructure.