• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KLimitedIODevice Class Reference

A readonly device that reads from an underlying device from a given point to another (e.g. More...

#include <klimitediodevice.h>

Inheritance diagram for KLimitedIODevice:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

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).

Author:
David Faure <david@mandrakesoft.com>
Since:
3.1

Definition at line 31 of file klimitediodevice.h.


Constructor & Destructor Documentation

KLimitedIODevice::KLimitedIODevice ( QIODevice *  dev,
int  start,
int  length 
) [inline]

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 41 of file klimitediodevice.h.

virtual KLimitedIODevice::~KLimitedIODevice (  )  [inline, virtual]

Definition at line 48 of file klimitediodevice.h.


Member Function Documentation

virtual bool KLimitedIODevice::at ( Offset  pos  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 89 of file klimitediodevice.h.

virtual Offset KLimitedIODevice::at (  )  const [inline, virtual]

Reimplemented from QIODevice.

Definition at line 88 of file klimitediodevice.h.

virtual bool KLimitedIODevice::atEnd (  )  const [inline, virtual]

Reimplemented from QIODevice.

Definition at line 94 of file klimitediodevice.h.

virtual void KLimitedIODevice::close (  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 67 of file klimitediodevice.h.

virtual void KLimitedIODevice::flush (  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 68 of file klimitediodevice.h.

virtual int KLimitedIODevice::getch (  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 80 of file klimitediodevice.h.

virtual bool KLimitedIODevice::open ( int  m  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 50 of file klimitediodevice.h.

virtual int KLimitedIODevice::putch ( int   )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 78 of file klimitediodevice.h.

virtual Q_LONG KLimitedIODevice::readBlock ( char *  data,
Q_ULONG  maxlen 
) [inline, virtual]

Reimplemented from QIODevice.

Definition at line 72 of file klimitediodevice.h.

virtual Offset KLimitedIODevice::size (  )  const [inline, virtual]

Reimplemented from QIODevice.

Definition at line 70 of file klimitediodevice.h.

virtual int KLimitedIODevice::ungetch ( int  c  )  [inline, virtual]

Reimplemented from QIODevice.

Definition at line 87 of file klimitediodevice.h.

virtual Q_LONG KLimitedIODevice::writeBlock ( const char *  ,
Q_ULONG   
) [inline, virtual]

Reimplemented from QIODevice.

Definition at line 77 of file klimitediodevice.h.


The documentation for this class was generated from the following file:
  • klimitediodevice.h

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal