• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • 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:
QIODevice

List of all members.

Public Member Functions

virtual qint64 bytesAvailable () const
virtual void close ()
virtual bool isSequential () const
 KLimitedIODevice (QIODevice *dev, int start, int length)
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)
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 <faure@kde.org>

For internal use only.

- used by KArchive

Definition at line 31 of file klimitediodevice.h.


Constructor & Destructor Documentation

KLimitedIODevice::KLimitedIODevice ( QIODevice *  dev,
int  start,
int  length 
)

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.

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

Definition at line 42 of file klimitediodevice.h.


Member Function Documentation

qint64 KLimitedIODevice::bytesAvailable (  )  const [virtual]

Definition at line 72 of file klimitediodevice.cpp.

void KLimitedIODevice::close (  )  [virtual]

Definition at line 46 of file klimitediodevice.cpp.

bool KLimitedIODevice::isSequential (  )  const [virtual]

Definition at line 77 of file klimitediodevice.cpp.

bool KLimitedIODevice::open ( QIODevice::OpenMode  m  )  [virtual]

Definition at line 28 of file klimitediodevice.cpp.

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

Definition at line 53 of file klimitediodevice.h.

qint64 KLimitedIODevice::readData ( char *  data,
qint64  maxlen 
) [virtual]

Definition at line 55 of file klimitediodevice.cpp.

bool KLimitedIODevice::seek ( qint64  pos  )  [virtual]

Definition at line 61 of file klimitediodevice.cpp.

qint64 KLimitedIODevice::size (  )  const [virtual]

Definition at line 50 of file klimitediodevice.cpp.

virtual qint64 KLimitedIODevice::writeData ( const char *  ,
qint64   
) [inline, virtual]

Definition at line 52 of file klimitediodevice.h.


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

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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