C

QSafeFileInfo Class

class SafeRenderer::QSafeFileInfo

The QSafeFileInfo class contains functions for getting the path and the filename from the QSafeString. More...

Header: #include <QSafeFileInfo>
Since: QtSafeRenderer 1.2

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 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.