lib

#include <KoStoreDevice.h>

Public Member Functions

 KoStoreDevice (KoStore *store)
bool open (int m)
void close ()
void flush ()
Offset size () const
virtual TQ_LONG readBlock (char *data, TQ_ULONG maxlen)
virtual TQ_LONG writeBlock (const char *data, TQ_ULONG len)
TQ_LONG writeBlock (const TQByteArray &data)
int getch ()
int putch (int _c)
int ungetch (int)
virtual bool at (Offset pos)
virtual Offset at () const
virtual bool atEnd () const

Protected Attributes

KoStore * m_store

Detailed Description

This class implements a TQIODevice around KoStore, so that it can be used to create a TQDomDocument from it, to be written or read using TQDataStream or to be written using TQTextStream.

Definition at line 30 of file KoStoreDevice.h.

Constructor & Destructor Documentation

◆ KoStoreDevice()

KoStoreDevice::KoStoreDevice ( KoStore * store)
inline

Note: KoStore::open() should be called before calling this.

Definition at line 34 of file KoStoreDevice.h.

◆ ~KoStoreDevice()

KoStoreDevice::~KoStoreDevice ( )
inline

Definition at line 37 of file KoStoreDevice.h.

Member Function Documentation

◆ at() [1/2]

virtual Offset KoStoreDevice::at ( ) const
inlinevirtual

Definition at line 81 of file KoStoreDevice.h.

◆ at() [2/2]

virtual bool KoStoreDevice::at ( Offset pos)
inlinevirtual

Definition at line 80 of file KoStoreDevice.h.

◆ atEnd()

virtual bool KoStoreDevice::atEnd ( ) const
inlinevirtual

Definition at line 82 of file KoStoreDevice.h.

◆ close()

void KoStoreDevice::close ( )
inline

Definition at line 46 of file KoStoreDevice.h.

◆ flush()

void KoStoreDevice::flush ( )
inline

Definition at line 47 of file KoStoreDevice.h.

◆ getch()

int KoStoreDevice::getch ( )
inline

Definition at line 61 of file KoStoreDevice.h.

◆ open()

bool KoStoreDevice::open ( int m)
inline

Definition at line 39 of file KoStoreDevice.h.

◆ putch()

int KoStoreDevice::putch ( int _c)
inline

Definition at line 68 of file KoStoreDevice.h.

◆ readBlock()

virtual TQ_LONG KoStoreDevice::readBlock ( char * data,
TQ_ULONG maxlen )
inlinevirtual

Definition at line 56 of file KoStoreDevice.h.

◆ size()

Offset KoStoreDevice::size ( ) const
inline

Definition at line 49 of file KoStoreDevice.h.

◆ ungetch()

int KoStoreDevice::ungetch ( int )
inline

Definition at line 77 of file KoStoreDevice.h.

◆ writeBlock() [1/2]

virtual TQ_LONG KoStoreDevice::writeBlock ( const char * data,
TQ_ULONG len )
inlinevirtual

Definition at line 57 of file KoStoreDevice.h.

◆ writeBlock() [2/2]

TQ_LONG KoStoreDevice::writeBlock ( const TQByteArray & data)
inline

Definition at line 59 of file KoStoreDevice.h.

Member Data Documentation

◆ m_store

KoStore* KoStoreDevice::m_store
protected

Definition at line 85 of file KoStoreDevice.h.


The documentation for this class was generated from the following file: