The FileIO class provides platform independent file reading for resource files used. The file that should be read is specified by name and FileIO will load it from platform dependent location.
More...
#include <fileio.h>
The FileIO class provides platform independent file reading for resource files used. The file that should be read is specified by name and FileIO will load it from platform dependent location.
FileIO::FileIO |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Creates a new FileIO.
- Parameters
-
void FileIO::error |
( |
const QString & |
msg | ) |
|
|
signal |
This signal will be emitted if an error occurs.
- Parameters
-
msg | The error message describing the error |
Reads previous specified file.
- Returns
- Read file as QString.
void FileIO::setSource |
( |
const QString & |
source | ) |
|
Sets the source file by name. The source is read calling read()
- Parameters
-
source | The name of file that should be read. |
QString FileIO::source |
( |
| ) |
|
The name of file that is read by read().
- Returns
void FileIO::sourceChanged |
( |
const QString & |
source | ) |
|
|
signal |
This signal is emitted if the source() is changed.
- Parameters
-
bool FileIO::write |
( |
const QString & |
data | ) |
|
Writes specified data into source()
- Parameters
-
data | The data that will be written into source() |
The documentation for this class was generated from the following files: