• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • Okteta
  • ByteArrayValidator
Public Types | Public Member Functions | List of all members
Okteta::ByteArrayValidator Class Reference

#include <bytearrayvalidator.h>

Inheritance diagram for Okteta::ByteArrayValidator:
Inheritance graph
[legend]

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

enum Okteta::ByteArrayValidator::Coding
Enumerator
InvalidCoding 
HexadecimalCoding 
DecimalCoding 
OctalCoding 
BinaryCoding 
CharCoding 
Utf8Coding 

Definition at line 44 of file bytearrayvalidator.h.

Constructor & Destructor Documentation

Okteta::ByteArrayValidator::ByteArrayValidator ( QObject *  parent = 0,
Coding  codecId = CharCoding,
int  charCodecId = LocalEncoding 
)
explicit

Definition at line 34 of file bytearrayvalidator.cpp.

Okteta::ByteArrayValidator::~ByteArrayValidator ( )
virtual

Definition at line 213 of file bytearrayvalidator.cpp.

Member Function Documentation

int Okteta::ByteArrayValidator::maxLength ( ) const
inline

Definition at line 101 of file bytearrayvalidator.h.

int Okteta::ByteArrayValidator::minLength ( ) const
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.

QValidator::State Okteta::ByteArrayValidator::validate ( QString &  input,
int &  pos 
) const
virtual

Definition at line 85 of file bytearrayvalidator.cpp.


The documentation for this class was generated from the following files:
  • bytearrayvalidator.h
  • bytearrayvalidator.cpp
This file is part of the KDE documentation.
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.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal