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 |
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::qchar *pathArg) |
void | setPath(const SafeRenderer::QSafeString &pathArg) |
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::qchar *pathArg)
Sets the absolute pathArg to the QSafeFileInfo.
If the path is not valid, following exceptions can be thrown:
Exception | Id | Description |
---|---|---|
SafeRenderer::QSafeFileException | SafeRenderer::QSafeFileException::FileException::TooLongFilename | Given path is too long (over Constraints::MAX_FILENAME_LEN characters). |
SafeRenderer::QSafeFileException | SafeRenderer::QSafeFileException::FileException::InvalidFilename | Given path was not empty and ended in with path delimiter '/'. |
See also path().
void QSafeFileInfo::setPath(const SafeRenderer::QSafeString &pathArg)
QSafeString overloaded version of setPath().
Available under certain Qt licenses.
Find out more.