C

QSafeLayoutFileReader Class

(SafeRenderer::QSafeLayoutFileReader)

The QSafeLayoutFileReader class reads the layout data from a file. More...

Header: #include <QSafeLayoutFileReader>
Since: QtSafeRenderer 1.0
Inherits: SafeRenderer::QSafeLayout

Public Functions

Detailed Description

The QSafeLayoutFileReader class reads the layout data from a file.

Member Function Documentation

QSafeLayoutFileReader::QSafeLayoutFileReader()

Constructs a safe layout file reader.

This function was introduced in QtSafeRenderer 1.0.

QSafeLayoutFileReader::QSafeLayoutFileReader(const qchar * const file)

Constructs a safe layout file reader that reads the layout data from the file.

The full path of the file can given to the file parameter. The bitmap data files must be located in the same path with the layout data file.

In case of a failure, one of the following exceptions are thrown:

ConstantDescription
SafeRenderer::QSafeBitmapFileReader::BitmapFileReaderException::TooManyThe number of bitmaps exceeds the MAXIMUM value.
SafeRenderer::QSafeFile::FileException::SeekErrorSeek failed on opening the file. For example, the root cause for the error can be a filesystem error or a file that is a pipe.
SafeRenderer::QSafeLayout::LayoutFileReaderException::DataSizeMismatchLayout file's size is more than buffer's size.
SafeRenderer::QSafeFile::FileException::ReadErrorThe requested number of bytes can not be read from the opened file.
SafeRenderer::QSafeLayout::LayoutFileReaderException::SizeErrorWidthThe width of the layout size too long.
SafeRenderer::QSafeLayout::LayoutFileReaderException::SizeErrorHeightThe height of the layout size too long.
SafeRenderer::QSafeLayout::LayoutFileReaderException::DataSizeMismatchThe layout file size is not multiple of the layout data size or layout data size is too small, or has too many layouts
SafeRenderer::QSafeLayout::InvalidLayoutVersionLayout version is not supported.
SafeRenderer::QSafeLayout::CheckSumFailedLayout checksum value does not match with the data checksum.
SafeRenderer::QSafeLayout::TooLongFilenameBitmap's filename was too long to fit in buffer.

This function was introduced in QtSafeRenderer 1.0.

[virtual] QSafeLayoutFileReader::~QSafeLayoutFileReader()

Destroys the instance of QSafeLayoutFileReader. The destructor is virtual.

Available under certain Qt licenses.
Find out more.