#include <FxUIFile.h>
|
| enum | FxUIPermission {
ReadOwner = 0x4000
, WriteOwner = 0x2000
, ExeOwner = 0x1000
, ReadUser = 0x0400
,
WriteUser = 0x0200
, ExeUser = 0x0100
, ReadGroup = 0x0040
, WriteGroup = 0x0020
,
ExeGroup = 0x0010
, ReadOther = 0x0004
, WriteOther = 0x0002
, ExeOther = 0x0001
} |
| |
| enum | FxUIOpenMode {
NotOpen = 0x0000
, ReadOnly = 0x0001
, WriteOnly = 0x0002
, ReadWrite = ReadOnly | WriteOnly
,
Append = 0x0004
, Truncate = 0x0008
, Text = 0x0010
, Unbuffered = 0x0020
,
NewOnly = 0x0040
, ExistingOnly = 0x0080
} |
| |
Definition at line 30 of file FxUIFile.h.
◆ FxUIOpenMode
| Enumerator |
|---|
| NotOpen | |
| ReadOnly | |
| WriteOnly | |
| ReadWrite | |
| Append | |
| Truncate | |
| Text | |
| Unbuffered | |
| NewOnly | |
| ExistingOnly | |
Definition at line 49 of file FxUIFile.h.
◆ FxUIPermission
| Enumerator |
|---|
| ReadOwner | |
| WriteOwner | |
| ExeOwner | |
| ReadUser | |
| WriteUser | |
| ExeUser | |
| ReadGroup | |
| WriteGroup | |
| ExeGroup | |
| ReadOther | |
| WriteOther | |
| ExeOther | |
Definition at line 33 of file FxUIFile.h.
◆ CFxUIFile() [1/4]
◆ CFxUIFile() [2/4]
Parameterized Constructor
◆ CFxUIFile() [3/4]
| CFxUIFile::CFxUIFile |
( |
const CFxUIFile & | file | ) |
|
◆ CFxUIFile() [4/4]
| CFxUIFile::CFxUIFile |
( |
const QFile & | file | ) |
|
◆ ~CFxUIFile()
| CFxUIFile::~CFxUIFile |
( |
| ) |
|
◆ close()
| void CFxUIFile::close |
( |
| ) |
|
◆ copy()
Copy the file to the destination.
- Parameters
-
◆ exists() [1/2]
| bool CFxUIFile::exists |
( |
| ) |
const |
Returns true if the file specified by fileName exists, otherwise returns false.
- Returns
- bool
◆ exists() [2/2]
| static bool CFxUIFile::exists |
( |
const CFxUIString & | fileName | ) |
|
|
static |
Returns true if the file specified by fileName exists, otherwise returns false.
- Parameters
-
- Returns
- bool
◆ open()
Opens the file using OpenMode mode, returning true if successful, otherwise false.
- Parameters
-
- Returns
- bool
◆ operator const QFile &()
| CFxUIFile::operator const QFile & |
( |
| ) |
const |
◆ operator=()
◆ permissions()
| int CFxUIFile::permissions |
( |
| ) |
const |
Returns all the permissions for the file.
- Returns
- Permission
◆ readAll()
Reads all data from the device, and returns it as a byte array.
- Returns
- CFxUIByteArray
◆ remove()
| bool CFxUIFile::remove |
( |
| ) |
|
Returns true if the file specified by fileName removed, otherwise returns false.
- Returns
- bool
◆ setPermissions()
| bool CFxUIFile::setPermissions |
( |
int | permissionSpec | ) |
|
Sets all the permissions for the file.
- Parameters
-
- Returns
- bool
◆ write()
Writes the data to the file. Returns the the number of bytes actually written.
- Parameters
-
- Returns
- int
◆ m_pImpl
| CFxUIFileImpl* CFxUIFile::m_pImpl |
|
protected |
The documentation for this class was generated from the following file: