C
QSafeLayoutResourceReader Class
class SafeRenderer::QSafeLayoutResourceReaderThe 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
QSafeLayoutResourceReader(const SafeRenderer::qchar *const filenameArg) |
Reimplemented Public Functions
virtual const SafeRenderer::QSafeByteArray | readDataFromFile(const SafeRenderer::qchar *const filenameArg) override |
Detailed Description
The QSafeLayoutResourceReader class reads the layout data from the Qt's resource structure.
Member Function Documentation
QSafeLayoutResourceReader::QSafeLayoutResourceReader(const SafeRenderer::qchar *const filenameArg)
Constructs a safe layout resource reader that reads the layout data from the filenameArg resource struct.
In case of a failure, an exception will be thrown:
Exception | Id | Description |
---|---|---|
SafeRenderer::QSafeBitmapException | SafeRenderer::QSafeBitmapException::BitmapException::TooMany | The number of bitmaps exceeds the MAXIMUM value. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::DataSizeMismatch | Layout file's size is more than buffer's size. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::SizeErrorWidth | The width of the layout size too long. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::SizeErrorHeight | The height of the layout size too long. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::DataSizeMismatch | The layout file size is not multiple of the layout data size or layout data size is too small, or has too many layouts. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::InvalidLayoutVersion | Layout version is not supported. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::CheckSumFailed | Layout checksum value does not match with the data checksum. |
SafeRenderer::QSafeLayoutException | SafeRenderer::QSafeLayoutException::LayoutException::TooLongFilename | Bitmap's filename was too long to fit in buffer. |
SafeRenderer::QSafeResourceException | SafeRenderer::QSafeResourceException::ResourceException::FailureToOpen | Could not find the file for reading. |
[override virtual, since QtSafeRenderer 1.1]
const SafeRenderer::QSafeByteArray QSafeLayoutResourceReader::readDataFromFile(const SafeRenderer::qchar *const filenameArg)
Reimplements: QSafeLayout::readDataFromFile(const SafeRenderer::qchar *const filenameArg).
Read data from a file filenameArg.
This function was introduced in QtSafeRenderer 1.1.
Available under certain Qt licenses.
Find out more.