FX::QIODeviceS Class Reference
[Synchronous i/o devices]

#include <QIODeviceS.h>

Inheritance diagram for FX::QIODeviceS:

FX::QIODevice FX::QBlkSocket FX::QChildProcess FX::QLocalPipe FX::QPipe FX::QSSLDevice List of all members.

Detailed Description

The abstract base class for all synchronous i/o classes in TnFOX.

You'll also want to see FX::QIODevice. All subclasses of this base class are i/o devices which provide a synchronous functionality.

You can wait for data to become available on any one of a number of QIODeviceS's using the static method waitForData().

Definition at line 52 of file QIODeviceS.h.

Public Types

typedef FXfval Offset
 Default
 Unix
 MacOS
 MSDOS
 NoTranslation
 UTF8
 UTF16
 UTF16LE
 UTF32
 UTF32LE
enum  CRLFType { Default, Unix, MacOS, MSDOS }
enum  UnicodeType {
  NoTranslation, UTF8, UTF16, UTF16LE,
  UTF32, UTF32LE
}

Public Member Functions

 QIODeviceS ()
virtual bool isSynchronous () const
virtual bool create (FXuint mode=IO_ReadWrite)=0
virtual bool open (FXuint mode=IO_ReadWrite)=0
virtual void truncate (FXfval)
virtual FXfval at () const
virtual bool at (FXfval)
virtual bool atEnd () const
virtual FXuval readBlockFrom (char *data, FXuval maxlen, FXfval pos)
virtual FXuval writeBlockTo (FXfval pos, const char *data, FXuval maxlen)
FXuint flags () const
FXuint mode () const
FXuint state () const
CRLFType crlfFormat () const
void setCRLFFormat (CRLFType type)
UnicodeType unicodeTranslation () const
void setUnicodeTranslation (UnicodeType type)
bool isBuffered () const
bool isRaw () const
bool isTranslated () const
bool isUTF16Translated () const
bool isUTF32Translated () const
bool isReadable () const
bool isWriteable () const
bool isWritable () const
bool isReadWrite () const
bool isClosed () const
bool isInactive () const
bool isOpen () const
virtual void close ()=0
virtual void flush ()=0
virtual FXfval size () const =0
virtual const FXACLpermissions () const
virtual void setPermissions (const FXACL &)
virtual FXuval readBlock (char *data, FXuval maxlen)=0
FXuval readBlock (FXuchar *data, FXuval maxlen)
virtual FXuval writeBlock (const char *data, FXuval maxlen)=0
FXuval writeBlock (const FXuchar *data, FXuval maxlen)
virtual FXuval readLine (char *data, FXuval maxlen)
FXuval readBlockFrom (FXuchar *data, FXuval maxlen, FXfval pos)
FXuval writeBlockTo (FXfval pos, const FXuchar *data, FXuval maxlen)
virtual int getch ()
virtual int putch (int c)
virtual int ungetch (int c)=0
FXfval shredData (FXfval offset, FXfval len=(FXfval)-1)

Static Public Member Functions

static bool waitForData (QIODeviceS **signalled, FXuint no, QIODeviceS **list, FXuint waitfor=FXINFINITE)
static FXuint waitForDataMax () throw ()
static UnicodeType determineUnicodeType (FXuchar *data, FXuval len) throw ()
static FXuval applyCRLF (FXuchar *FXRESTRICT output, const FXuchar *FXRESTRICT input, FXuval outputlen, FXuval &inputlen, CRLFType crlftype=Default, UnicodeType utftype=NoTranslation)
static FXuval removeCRLF (FXuchar *FXRESTRICT output, const FXuchar *FXRESTRICT input, FXuval outputlen, FXuval &inputlen, UnicodeType utftype=NoTranslation)

Protected Member Functions

 QIODeviceS (const QIODeviceS &o)
void setFlags (int f)
void setMode (int m)
void setState (int s)

Protected Attributes

FXfval ioIndex

Friends

class QSSLDevice
FXAPI FXStreamoperator<< (FXStream &s, QIODevice &i)
FXAPI FXStreamoperator>> (FXStream &s, QIODevice &i)


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:40 2009 for TnFOX by doxygen v1.4.7