okteta
bytearrayvalidator.cpp
Go to the documentation of this file.
Definition: oktetacore.h:35
static ValueCodec * createCodec(ValueCoding valueCoding)
Definition: valuecodec.cpp:36
void setCharCodec(const QString &charCodecName)
Sets the char codec to use. Does not change the current codec.
Definition: bytearrayvalidator.cpp:47
unsigned int decode(Byte *byte, const QString &text, unsigned int pos=0) const
Tries to decode the digits in the text into a byte.
Definition: valuecodec.cpp:50
void setMaxLength(int maxLength)
Sets the maximal length of the edited bytearray to maxLength.
Definition: bytearrayvalidator.cpp:71
QString toString(const QByteArray &byteArray) const
Definition: bytearrayvalidator.cpp:185
virtual Character decode(Byte byte) const =0
virtual ~ByteArrayValidator()
Definition: bytearrayvalidator.cpp:213
Definition: charcodec.h:42
ByteArrayValidator(QObject *parent=0, Coding codecId=CharCoding, int charCodecId=LocalEncoding)
Definition: bytearrayvalidator.cpp:34
static CharCodec * createCodec(CharCoding charCoding)
Definition: charcodec.cpp:68
void setCodec(Coding codecId)
Sets one of the value codecs or the current char codec.
Definition: bytearrayvalidator.cpp:56
virtual QValidator::State validate(QString &input, int &pos) const
Definition: bytearrayvalidator.cpp:85
virtual bool canEncode(const QChar &_char) const =0
virtual bool encode(Byte *byte, const QChar &_char) const =0
virtual const QString & name() const =0
void setMinLength(int minLength)
Sets the maximal length of the edited bytearray to minLength.
Definition: bytearrayvalidator.cpp:78
virtual unsigned int encodingWidth() const =0
Definition: character.h:35
QByteArray toByteArray(const QString &string) const
Definition: bytearrayvalidator.cpp:146
virtual void encode(QString &digits, unsigned int pos, Byte byte) const =0
Encodes the byte using full coding width, prefixing with 0s if needed, and writes the result to digit...
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.