okteta
#include <bytearrayvalidator.h>

Public Types | |
enum | Coding { InvalidCoding = -1, HexadecimalCoding = 0, DecimalCoding = 1, OctalCoding = 2, BinaryCoding = 3, CharCoding = 4, Utf8Coding = 5 } |
Public Member Functions | |
ByteArrayValidator (QObject *parent=0, Coding codecId=CharCoding, int charCodecId=LocalEncoding) | |
virtual | ~ByteArrayValidator () |
int | maxLength () const |
int | minLength () const |
void | setCharCodec (const QString &charCodecName) |
void | setCodec (Coding codecId) |
void | setMaxLength (int maxLength) |
void | setMinLength (int minLength) |
QByteArray | toByteArray (const QString &string) const |
QString | toString (const QByteArray &byteArray) const |
virtual QValidator::State | validate (QString &input, int &pos) const |
Detailed Description
Definition at line 38 of file bytearrayvalidator.h.
Member Enumeration Documentation
Enumerator | |
---|---|
InvalidCoding | |
HexadecimalCoding | |
DecimalCoding | |
OctalCoding | |
BinaryCoding | |
CharCoding | |
Utf8Coding |
Definition at line 44 of file bytearrayvalidator.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 34 of file bytearrayvalidator.cpp.
|
virtual |
Definition at line 213 of file bytearrayvalidator.cpp.
Member Function Documentation
|
inline |
Definition at line 101 of file bytearrayvalidator.h.
|
inline |
Definition at line 102 of file bytearrayvalidator.h.
void Okteta::ByteArrayValidator::setCharCodec | ( | const QString & | charCodecName | ) |
Sets the char codec to use. Does not change the current codec.
Definition at line 47 of file bytearrayvalidator.cpp.
void Okteta::ByteArrayValidator::setCodec | ( | Coding | codecId | ) |
Sets one of the value codecs or the current char codec.
Definition at line 56 of file bytearrayvalidator.cpp.
void Okteta::ByteArrayValidator::setMaxLength | ( | int | maxLength | ) |
Sets the maximal length of the edited bytearray to maxLength
.
If maxLength
is negative, the behaviour is undefined. Default is 32767
.
Definition at line 71 of file bytearrayvalidator.cpp.
void Okteta::ByteArrayValidator::setMinLength | ( | int | minLength | ) |
Sets the maximal length of the edited bytearray to minLength
.
If minLength
is negative, the behaviour is undefined. Default is 0
.
Definition at line 78 of file bytearrayvalidator.cpp.
QByteArray Okteta::ByteArrayValidator::toByteArray | ( | const QString & | string | ) | const |
Definition at line 146 of file bytearrayvalidator.cpp.
QString Okteta::ByteArrayValidator::toString | ( | const QByteArray & | byteArray | ) | const |
Definition at line 185 of file bytearrayvalidator.cpp.
|
virtual |
Definition at line 85 of file bytearrayvalidator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.