Notation used in Ruby API documentation
Module: QtCore
Description: Binding of QIODevice
Class hierarchy: QIODevice » QObject
Sub-classes: OpenModeFlag, QFlags_OpenModeFlag
new QIODevice ptr | new | Creates a new object of this class |
[const] | QIODevice ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[signal] | void | aboutToClose | Signal declaration for QIODevice::aboutToClose() | |
[const] | bool | atEnd | Method bool QIODevice::atEnd() | |
[const] | long long | bytesAvailable | Method qint64 QIODevice::bytesAvailable() | |
[const] | long long | bytesToWrite | Method qint64 QIODevice::bytesToWrite() | |
[signal] | void | bytesWritten | (long long bytes) | Signal declaration for QIODevice::bytesWritten(qint64 bytes) |
[const] | bool | canReadLine | Method bool QIODevice::canReadLine() | |
[signal] | void | channelBytesWritten | (int channel, long long bytes) | Signal declaration for QIODevice::channelBytesWritten(int channel, qint64 bytes) |
[signal] | void | channelReadyRead | (int channel) | Signal declaration for QIODevice::channelReadyRead(int channel) |
void | close | Method void QIODevice::close() | ||
void | commitTransaction | Method void QIODevice::commitTransaction() | ||
[const] | int | currentReadChannel | Method int QIODevice::currentReadChannel() | |
void | currentReadChannel= | (int channel) | Method void QIODevice::setCurrentReadChannel(int channel) | |
[const] | int | currentWriteChannel | Method int QIODevice::currentWriteChannel() | |
void | currentWriteChannel= | (int channel) | Method void QIODevice::setCurrentWriteChannel(int channel) | |
[signal] | void | destroyed | (QObject ptr arg1) | Signal declaration for QIODevice::destroyed(QObject *) |
[const] | string | errorString | Method QString QIODevice::errorString() | |
[const] | bool | isOpen? | Method bool QIODevice::isOpen() | |
[const] | bool | isReadable? | Method bool QIODevice::isReadable() | |
[const] | bool | isSequential? | Method bool QIODevice::isSequential() | |
[const] | bool | isTextModeEnabled? | Method bool QIODevice::isTextModeEnabled() | |
[const] | bool | isTransactionStarted? | Method bool QIODevice::isTransactionStarted() | |
[const] | bool | isWritable? | Method bool QIODevice::isWritable() | |
[signal] | void | objectNameChanged | (string objectName) | Signal declaration for QIODevice::objectNameChanged(const QString &objectName) |
bool | open | (QIODevice_QFlags_OpenModeFlag mode) | Method bool QIODevice::open(QFlags<QIODevice::OpenModeFlag> mode) | |
[const] | QIODevice_QFlags_OpenModeFlag | openMode | Method QFlags<QIODevice::OpenModeFlag> QIODevice::openMode() | |
bytes | peek | (long long maxlen) | Method QByteArray QIODevice::peek(qint64 maxlen) | |
[const] | long long | pos | Method qint64 QIODevice::pos() | |
bool | putChar | (char c) | Method bool QIODevice::putChar(char c) | |
bytes | read | (long long maxlen) | Method QByteArray QIODevice::read(qint64 maxlen) | |
bytes | readAll | Method QByteArray QIODevice::readAll() | ||
[const] | int | readChannelCount | Method int QIODevice::readChannelCount() | |
[signal] | void | readChannelFinished | Signal declaration for QIODevice::readChannelFinished() | |
bytes | readLine | (long long maxlen = 0) | Method QByteArray QIODevice::readLine(qint64 maxlen) | |
[signal] | void | readyRead | Signal declaration for QIODevice::readyRead() | |
bool | reset | Method bool QIODevice::reset() | ||
void | rollbackTransaction | Method void QIODevice::rollbackTransaction() | ||
bool | seek | (long long pos) | Method bool QIODevice::seek(qint64 pos) | |
void | setCurrentReadChannel | (int channel) | Method void QIODevice::setCurrentReadChannel(int channel) | |
void | setCurrentWriteChannel | (int channel) | Method void QIODevice::setCurrentWriteChannel(int channel) | |
void | setTextModeEnabled | (bool enabled) | Method void QIODevice::setTextModeEnabled(bool enabled) | |
[const] | long long | size | Method qint64 QIODevice::size() | |
long long | skip | (long long maxSize) | Method qint64 QIODevice::skip(qint64 maxSize) | |
void | startTransaction | Method void QIODevice::startTransaction() | ||
[const] | bool | textModeEnabled | Method bool QIODevice::isTextModeEnabled() | |
void | textModeEnabled= | (bool enabled) | Method void QIODevice::setTextModeEnabled(bool enabled) | |
void | ungetChar | (char c) | Method void QIODevice::ungetChar(char c) | |
bool | waitForBytesWritten | (int msecs) | Method bool QIODevice::waitForBytesWritten(int msecs) | |
bool | waitForReadyRead | (int msecs) | Method bool QIODevice::waitForReadyRead(int msecs) | |
long long | write | (string data, long long len) | Method qint64 QIODevice::write(const char *data, qint64 len) | |
long long | write | (bytes data) | Method qint64 QIODevice::write(const QByteArray &data) | |
[const] | int | writeChannelCount | Method int QIODevice::writeChannelCount() |
[static,const] | QIODevice_OpenModeFlag | Append | Enum constant QIODevice::Append | |
[static,const] | QIODevice_OpenModeFlag | ExistingOnly | Enum constant QIODevice::ExistingOnly | |
[static,const] | QIODevice_OpenModeFlag | NewOnly | Enum constant QIODevice::NewOnly | |
[static,const] | QIODevice_OpenModeFlag | NotOpen | Enum constant QIODevice::NotOpen | |
[static,const] | QIODevice_OpenModeFlag | ReadOnly | Enum constant QIODevice::ReadOnly | |
[static,const] | QIODevice_OpenModeFlag | ReadWrite | Enum constant QIODevice::ReadWrite | |
[static,const] | QIODevice_OpenModeFlag | Text | Enum constant QIODevice::Text | |
[static,const] | QIODevice_OpenModeFlag | Truncate | Enum constant QIODevice::Truncate | |
[static,const] | QIODevice_OpenModeFlag | Unbuffered | Enum constant QIODevice::Unbuffered | |
[static,const] | QIODevice_OpenModeFlag | WriteOnly | Enum constant QIODevice::WriteOnly | |
QMetaObject | staticMetaObject | Obtains the static MetaObject for this class. | ||
string | tr | (string s, string c = nullptr, int n = -1) | Static method QString QIODevice::tr(const char *s, const char *c, int n) | |
string | trUtf8 | (string s, string c = nullptr, int n = -1) | Static method QString QIODevice::trUtf8(const char *s, const char *c, int n) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
Append | Signature: [static,const] QIODevice_OpenModeFlag Append Description: Enum constant QIODevice::Append Python specific notes: |
ExistingOnly | Signature: [static,const] QIODevice_OpenModeFlag ExistingOnly Description: Enum constant QIODevice::ExistingOnly Python specific notes: |
NewOnly | Signature: [static,const] QIODevice_OpenModeFlag NewOnly Description: Enum constant QIODevice::NewOnly Python specific notes: |
NotOpen | Signature: [static,const] QIODevice_OpenModeFlag NotOpen Description: Enum constant QIODevice::NotOpen Python specific notes: |
ReadOnly | Signature: [static,const] QIODevice_OpenModeFlag ReadOnly Description: Enum constant QIODevice::ReadOnly Python specific notes: |
ReadWrite | Signature: [static,const] QIODevice_OpenModeFlag ReadWrite Description: Enum constant QIODevice::ReadWrite Python specific notes: |
Text | Signature: [static,const] QIODevice_OpenModeFlag Text Description: Enum constant QIODevice::Text Python specific notes: |
Truncate | Signature: [static,const] QIODevice_OpenModeFlag Truncate Description: Enum constant QIODevice::Truncate Python specific notes: |
Unbuffered | Signature: [static,const] QIODevice_OpenModeFlag Unbuffered Description: Enum constant QIODevice::Unbuffered Python specific notes: |
WriteOnly | Signature: [static,const] QIODevice_OpenModeFlag WriteOnly Description: Enum constant QIODevice::WriteOnly Python specific notes: |
_const_cast | Signature: [const] QIODevice ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
aboutToClose | Signature: [signal] void aboutToClose Description: Signal declaration for QIODevice::aboutToClose() You can bind a procedure to this signal. Python specific notes: |
atEnd | Signature: [const] bool atEnd Description: Method bool QIODevice::atEnd() |
bytesAvailable | Signature: [const] long long bytesAvailable Description: Method qint64 QIODevice::bytesAvailable() |
bytesToWrite | Signature: [const] long long bytesToWrite Description: Method qint64 QIODevice::bytesToWrite() |
bytesWritten | Signature: [signal] void bytesWritten (long long bytes) Description: Signal declaration for QIODevice::bytesWritten(qint64 bytes) You can bind a procedure to this signal. Python specific notes: |
canReadLine | Signature: [const] bool canReadLine Description: Method bool QIODevice::canReadLine() |
channelBytesWritten | Signature: [signal] void channelBytesWritten (int channel, long long bytes) Description: Signal declaration for QIODevice::channelBytesWritten(int channel, qint64 bytes) You can bind a procedure to this signal. Python specific notes: |
channelReadyRead | Signature: [signal] void channelReadyRead (int channel) Description: Signal declaration for QIODevice::channelReadyRead(int channel) You can bind a procedure to this signal. Python specific notes: |
close | Signature: void close Description: Method void QIODevice::close() |
commitTransaction | Signature: void commitTransaction Description: Method void QIODevice::commitTransaction() |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
currentReadChannel | Signature: [const] int currentReadChannel Description: Method int QIODevice::currentReadChannel() Python specific notes: |
currentReadChannel= | Signature: void currentReadChannel= (int channel) Description: Method void QIODevice::setCurrentReadChannel(int channel) Python specific notes: |
currentWriteChannel | Signature: [const] int currentWriteChannel Description: Method int QIODevice::currentWriteChannel() Python specific notes: |
currentWriteChannel= | Signature: void currentWriteChannel= (int channel) Description: Method void QIODevice::setCurrentWriteChannel(int channel) Python specific notes: |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed | Signature: [signal] void destroyed (QObject ptr arg1) Description: Signal declaration for QIODevice::destroyed(QObject *) You can bind a procedure to this signal. Python specific notes: |
errorString | Signature: [const] string errorString Description: Method QString QIODevice::errorString() |
isOpen? | Signature: [const] bool isOpen? Description: Method bool QIODevice::isOpen() |
isReadable? | Signature: [const] bool isReadable? Description: Method bool QIODevice::isReadable() |
isSequential? | Signature: [const] bool isSequential? Description: Method bool QIODevice::isSequential() |
isTextModeEnabled? | Signature: [const] bool isTextModeEnabled? Description: Method bool QIODevice::isTextModeEnabled() Python specific notes: |
isTransactionStarted? | Signature: [const] bool isTransactionStarted? Description: Method bool QIODevice::isTransactionStarted() |
isWritable? | Signature: [const] bool isWritable? Description: Method bool QIODevice::isWritable() |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
new | Signature: [static] new QIODevice ptr new Description: Creates a new object of this class Python specific notes: |
objectNameChanged | Signature: [signal] void objectNameChanged (string objectName) Description: Signal declaration for QIODevice::objectNameChanged(const QString &objectName) You can bind a procedure to this signal. Python specific notes: |
open | Signature: bool open (QIODevice_QFlags_OpenModeFlag mode) Description: Method bool QIODevice::open(QFlags<QIODevice::OpenModeFlag> mode) |
openMode | Signature: [const] QIODevice_QFlags_OpenModeFlag openMode Description: Method QFlags<QIODevice::OpenModeFlag> QIODevice::openMode() |
peek | Signature: bytes peek (long long maxlen) Description: Method QByteArray QIODevice::peek(qint64 maxlen) |
pos | Signature: [const] long long pos Description: Method qint64 QIODevice::pos() |
putChar | Signature: bool putChar (char c) Description: Method bool QIODevice::putChar(char c) |
read | Signature: bytes read (long long maxlen) Description: Method QByteArray QIODevice::read(qint64 maxlen) |
readAll | Signature: bytes readAll Description: Method QByteArray QIODevice::readAll() |
readChannelCount | Signature: [const] int readChannelCount Description: Method int QIODevice::readChannelCount() |
readChannelFinished | Signature: [signal] void readChannelFinished Description: Signal declaration for QIODevice::readChannelFinished() You can bind a procedure to this signal. Python specific notes: |
readLine | Signature: bytes readLine (long long maxlen = 0) Description: Method QByteArray QIODevice::readLine(qint64 maxlen) |
readyRead | Signature: [signal] void readyRead Description: Signal declaration for QIODevice::readyRead() You can bind a procedure to this signal. Python specific notes: |
reset | Signature: bool reset Description: Method bool QIODevice::reset() |
rollbackTransaction | Signature: void rollbackTransaction Description: Method void QIODevice::rollbackTransaction() |
seek | Signature: bool seek (long long pos) Description: Method bool QIODevice::seek(qint64 pos) |
setCurrentReadChannel | Signature: void setCurrentReadChannel (int channel) Description: Method void QIODevice::setCurrentReadChannel(int channel) Python specific notes: |
setCurrentWriteChannel | Signature: void setCurrentWriteChannel (int channel) Description: Method void QIODevice::setCurrentWriteChannel(int channel) Python specific notes: |
setTextModeEnabled | Signature: void setTextModeEnabled (bool enabled) Description: Method void QIODevice::setTextModeEnabled(bool enabled) Python specific notes: |
size | Signature: [const] long long size Description: Method qint64 QIODevice::size() Python specific notes: |
skip | Signature: long long skip (long long maxSize) Description: Method qint64 QIODevice::skip(qint64 maxSize) |
startTransaction | Signature: void startTransaction Description: Method void QIODevice::startTransaction() |
staticMetaObject | Signature: [static] QMetaObject staticMetaObject Description: Obtains the static MetaObject for this class. |
textModeEnabled | Signature: [const] bool textModeEnabled Description: Method bool QIODevice::isTextModeEnabled() Python specific notes: |
textModeEnabled= | Signature: void textModeEnabled= (bool enabled) Description: Method void QIODevice::setTextModeEnabled(bool enabled) Python specific notes: |
tr | Signature: [static] string tr (string s, string c = nullptr, int n = -1) Description: Static method QString QIODevice::tr(const char *s, const char *c, int n) This method is static and can be called without an instance. |
trUtf8 | Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1) Description: Static method QString QIODevice::trUtf8(const char *s, const char *c, int n) This method is static and can be called without an instance. |
ungetChar | Signature: void ungetChar (char c) Description: Method void QIODevice::ungetChar(char c) |
waitForBytesWritten | Signature: bool waitForBytesWritten (int msecs) Description: Method bool QIODevice::waitForBytesWritten(int msecs) |
waitForReadyRead | Signature: bool waitForReadyRead (int msecs) Description: Method bool QIODevice::waitForReadyRead(int msecs) |
write | (1) Signature: long long write (string data, long long len) Description: Method qint64 QIODevice::write(const char *data, qint64 len) |
(2) Signature: long long write (bytes data) Description: Method qint64 QIODevice::write(const QByteArray &data) | |
writeChannelCount | Signature: [const] int writeChannelCount Description: Method int QIODevice::writeChannelCount() |