7#include <QtCore/qiodevice.h>
8#include <QtCore/qstring.h>
37 PermissionsError = 13,
49 ReadOwner = 0x4000, WriteOwner = 0x2000, ExeOwner = 0x1000,
50 ReadUser = 0x0400, WriteUser = 0x0200, ExeUser = 0x0100,
51 ReadGroup = 0x0040, WriteGroup = 0x0020, ExeGroup = 0x0010,
52 ReadOther = 0x0004, WriteOther = 0x0002, ExeOther = 0x0001
57 AutoCloseHandle = 0x0001,
64 FileError
error()
const;
67 void close()
override;
76 bool atEnd()
const override;
82 virtual Permissions permissions()
const;
83 virtual bool setPermissions(Permissions permissionSpec);
87 MapPrivateOption = 0x0001
\inmodule QtCore\reentrant
Permission
This enum is used by the permission() function to report the permissions and ownership of a file.
FileHandleFlag
This enum is used when opening a file to specify additional options which only apply to files and not...
FileError
This enum describes the errors that may be returned by the error() function.
\inmodule QtCore \reentrant
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
virtual qint64 pos() const
For random-access devices, this function returns the position that data is written to or read from.
virtual bool isSequential() const
Returns true if this device is sequential; otherwise returns false.
virtual qint64 readLineData(char *data, qint64 maxlen)
Reads up to maxSize characters into data and returns the number of characters read.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
virtual bool seek(qint64 pos)
For random-access devices, this function sets the current position to pos, returning true on success,...
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i....
\macro QT_RESTRICTED_CAST_FROM_ASCII
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLuint64 GLenum void * handle
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
GLuint GLuint64EXT address
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent