class KLimitedIODevice

# class KLimitedIODevice | A readonly device that reads from an underlying device from a given point to another (e. More...
Definition | `#include <klimitediodevice.h>`
Inherits | QIODevice (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KLimitedIODevice ( QIODevice *dev, int start, int length )
- virtual ~KLimitedIODevice ()
- virtual bool open ( int m )
- virtual void close ()
- virtual void flush ()
- virtual Offset size () const
- virtual Q_LONG readBlock ( char * data, Q_ULONG maxlen )
- virtual Q_LONG writeBlock ( const char *, Q_ULONG )
- virtual int putch ( int )
- virtual int getch ()
- virtual int ungetch ( int c )
- virtual Offset at () const
- virtual bool at ( Offset pos )
- virtual bool atEnd () const

## Detailed Description

A readonly device that reads from an underlying device from a given point to another (e.g. to give access to a single file inside an archive)

KLimitedIODevice ( QIODevice *dev, int start, int length ) | ### KLimitedIODevice

Parameters:

dev | the underlying device, opened or not This device itself auto-opens (in readonly mode), no need to open it.

~KLimitedIODevice () | ### ~KLimitedIODevice

[virtual]

bool open ( int m ) | ### open

[virtual]

void close () | ### close

[virtual]

void flush () | ### flush

[virtual]

Offset size () | ### size

[const virtual]

Q_LONG readBlock ( char * data, Q_ULONG maxlen ) | ### readBlock

[virtual]

Q_LONG writeBlock ( const char *, Q_ULONG ) | ### writeBlock

[virtual]

int putch ( int ) | ### putch

[virtual]

int getch () | ### getch

[virtual]

int ungetch ( int c ) | ### ungetch

[virtual]

Offset at () | ### at

[const virtual]

bool at ( Offset pos ) | ### at

[virtual]

bool atEnd () | ### atEnd

[const virtual]

- Author: David Faure
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.