C
QSafeFileInfo Class
class SafeRenderer::QSafeFileInfoThe QSafeFileInfo class contains functions for getting the path and the filename from the QSafeString. More...
Header: | #include <QSafeFileInfo> |
Since: | QtSafeRenderer 1.2 |
This class was introduced in QtSafeRenderer 1.2.
Public Types
enum | FileInfoException { InvalidFilename } |
Public Functions
const SafeRenderer::qchar * | absoluteFilePath() const |
void | filename(SafeRenderer::QSafeString &targetArg) const |
SafeRenderer::quint32 | hash() const |
void | path(SafeRenderer::QSafeString &targetArg) const |
void | setPath(const SafeRenderer::QSafeString &filenameArg) |
Detailed Description
The QSafeFileInfo class contains functions for parsing the path, the filename and hash value of the filename.
Member Type Documentation
enum QSafeFileInfo::FileInfoException
This enum describes the thrown exceptions of QSafeFileInfo class.
Constant | Value | Description |
---|---|---|
SafeRenderer::QSafeFileInfo::InvalidFilename | 0 | The filename is invalid. |
Member Function Documentation
const SafeRenderer::qchar *QSafeFileInfo::absoluteFilePath() const
Returns an absolute path including the file name. Returns Pointer to the data.
void QSafeFileInfo::filename(SafeRenderer::QSafeString &targetArg) const
Getter for the base name of the file without the path. The value is set to targetArg reference.
SafeRenderer::quint32 QSafeFileInfo::hash() const
Retruns the hash value of the filename.
void QSafeFileInfo::path(SafeRenderer::QSafeString &targetArg) const
Getter for the base name of the file without the path. The value is set to targetArg reference.
See also setPath().
void QSafeFileInfo::setPath(const SafeRenderer::QSafeString &filenameArg)
Sets the absolute filenameArg to the QSafeFileInfo.
Throws QSafeFileInfo::FileInfoExceptions::InvalidFilename if the filename is not valid.
See also path().
Available under certain Qt licenses.
Find out more.