C

QSafeLayoutResourceReader Class

(SafeRenderer::QSafeLayoutResourceReader)

The QSafeLayoutResourceReader class reads the layout data from the Qt's resource structure. More...

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

Public Functions

Detailed Description

The QSafeLayoutResourceReader class reads the layout data from the Qt's resource structure.

Member Function Documentation

QSafeLayoutResourceReader::QSafeLayoutResourceReader()

Default constructs an instance of QSafeLayoutResourceReader.

QSafeLayoutResourceReader::QSafeLayoutResourceReader(const qchar * const fileName)

Constructs a safe layout resource reader that reads the layout data from the fileName resource struct.

In case of a failure, an exception will be thrown:

ConstantDescription
SafeRenderer::QSafeBitmapFileReader::BitmapFileReaderException::TooManyThe number of bitmaps exceeds the MAXIMUM value.
SafeRenderer::QSafeLayout::LayoutFileReaderException::DataSizeMismatchLayout file's size is more than buffer's size.
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.

[virtual] QSafeLayoutResourceReader::~QSafeLayoutResourceReader()

Destroys the instance of QSafeLayoutResourceReader. The destructor is virtual.

Available under certain Qt licenses.
Find out more.