KDECore
#include <klimitediodevice_p.h>
Public Member Functions | |
KLimitedIODevice (QIODevice *dev, qint64 start, qint64 length) | |
virtual | ~KLimitedIODevice () |
virtual qint64 | bytesAvailable () const |
virtual void | close () |
virtual bool | isSequential () const |
virtual bool | open (QIODevice::OpenMode m) |
virtual int | putChar (int) |
virtual qint64 | readData (char *data, qint64 maxlen) |
virtual bool | seek (qint64 pos) |
virtual qint64 | size () const |
virtual qint64 | writeData (const char *, qint64) |
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).
- used by KArchive
Definition at line 31 of file klimitediodevice_p.h.
Constructor & Destructor Documentation
Creates a new KLimitedIODevice.
- Parameters
-
dev the underlying device, opened or not This device itself auto-opens (in readonly mode), no need to open it. start where to start reading (position in bytes) length the length of the data to read (in bytes)
Definition at line 21 of file klimitediodevice.cpp.
|
inlinevirtual |
Definition at line 42 of file klimitediodevice_p.h.
Member Function Documentation
|
virtual |
Definition at line 72 of file klimitediodevice.cpp.
|
virtual |
Definition at line 46 of file klimitediodevice.cpp.
|
virtual |
Definition at line 77 of file klimitediodevice.cpp.
|
virtual |
Definition at line 28 of file klimitediodevice.cpp.
|
inlinevirtual |
Definition at line 53 of file klimitediodevice_p.h.
Definition at line 55 of file klimitediodevice.cpp.
Definition at line 61 of file klimitediodevice.cpp.
|
virtual |
Definition at line 50 of file klimitediodevice.cpp.
Definition at line 52 of file klimitediodevice_p.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.