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

KDECore

Public Member Functions | List of all members
KLimitedIODevice Class Reference

#include <klimitediodevice_p.h>

Inheritance diagram for KLimitedIODevice:
Inheritance graph
[legend]

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

Author
David Faure faure.nosp@m.@kde.nosp@m..org

- used by KArchive

Definition at line 31 of file klimitediodevice_p.h.

Constructor & Destructor Documentation

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

Creates a new KLimitedIODevice.

Parameters
devthe underlying device, opened or not This device itself auto-opens (in readonly mode), no need to open it.
startwhere to start reading (position in bytes)
lengththe length of the data to read (in bytes)

Definition at line 21 of file klimitediodevice.cpp.

virtual KLimitedIODevice::~KLimitedIODevice ( )
inlinevirtual

Definition at line 42 of file klimitediodevice_p.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  )
inlinevirtual

Definition at line 53 of file klimitediodevice_p.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   
)
inlinevirtual

Definition at line 52 of file klimitediodevice_p.h.


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

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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