Eneboo - Documentación para desarrolladores
|
Métodos públicos | |
QStringBuffer (QString *str) | |
~QStringBuffer () | |
bool | open (int m) |
void | close () |
void | flush () |
Offset | size () const |
Offset | at () const |
bool | at (Offset pos) |
Q_LONG | readBlock (char *p, Q_ULONG len) |
Q_LONG | writeBlock (const char *p, Q_ULONG len) |
int | getch () |
int | putch (int ch) |
int | ungetch (int ch) |
Atributos protegidos | |
QString * | s |
QStringBuffer::QStringBuffer | ( | QString * | str | ) |
QStringBuffer::~QStringBuffer | ( | ) |
QIODevice::Offset QStringBuffer::at | ( | ) | const [virtual] |
void QStringBuffer::close | ( | void | ) | [virtual] |
void QStringBuffer::flush | ( | ) | [virtual] |
Flushes an open I/O device.
This virtual function must be reimplemented by all subclasses.
Implementa QIODevice.
int QStringBuffer::getch | ( | ) | [virtual] |
Opens the I/O device using the specified mode. Returns TRUE if the device was successfully opened; otherwise returns FALSE.
The mode parameter mode must be an OR'ed combination of the following flags. Mode flags Meaning IO_Raw
specifies raw (unbuffered) file access. IO_ReadOnly
opens a file in read-only mode. IO_WriteOnly
opens a file in write-only mode. IO_ReadWrite
opens a file in read/write mode. IO_Append
sets the file index to the end of the file. IO_Truncate
truncates the file. IO_Translate
enables carriage returns and linefeed translation for text files under MS-DOS, Windows and Macintosh. On Unix systems this flag has no effect. Use with caution as it will also transform every linefeed written to the file into a CRLF pair. This is likely to corrupt your file if you write write binary data. Cannot be combined with IO_Raw
.
This virtual function must be reimplemented by all subclasses.
Implementa QIODevice.
Q_LONG QStringBuffer::readBlock | ( | char * | data, |
Q_ULONG | maxlen | ||
) | [virtual] |
Reads at most maxlen bytes from the I/O device into data and returns the number of bytes actually read.
This function should return -1 if a fatal error occurs and should return 0 if there are no bytes to read.
The device must be opened for reading, and data must not be 0.
This virtual function must be reimplemented by all subclasses.
Implementa QIODevice.
QIODevice::Offset QStringBuffer::size | ( | ) | const [virtual] |
Q_LONG QStringBuffer::writeBlock | ( | const char * | data, |
Q_ULONG | len | ||
) | [virtual] |
Writes len bytes from data to the I/O device and returns the number of bytes actually written.
This function should return -1 if a fatal error occurs.
This virtual function must be reimplemented by all subclasses.
Implementa QIODevice.
QString* QStringBuffer::s [protected] |