FileName Class
(Utils::FileName)The FileName class is a light-weight convenience class for filenames. More...
| Header: | #include <FileName> |
Public Functions
| FileName() | |
| FileName(const QFileInfo &info) | |
| Utils::FileName & | appendPath(const QString &s) |
| Utils::FileName & | appendString(const QString &str) |
| Utils::FileName & | appendString(int str) |
| bool | endsWith(const QString &s) const |
| bool | exists() const |
| QString | fileName(int pathComponents = 0) const |
| bool | isChildOf(const Utils::FileName &s) const |
| bool | isChildOf(const QDir &dir) const |
| Utils::FileName | parentDir() const |
| Utils::FileName | relativeChildPath(const Utils::FileName &parent) const |
| QFileInfo | toFileInfo() const |
| const QString & | toString() const |
| QString | toUserOutput() const |
| bool | operator!=(const Utils::FileName &other) const |
| Utils::FileName | operator+(const QString &s) const |
| bool | operator<(const Utils::FileName &other) const |
| bool | operator<=(const Utils::FileName &other) const |
| bool | operator==(const Utils::FileName &other) const |
| bool | operator>(const Utils::FileName &other) const |
| bool | operator>=(const Utils::FileName &other) const |
Static Public Members
| Utils::FileName | fromLatin1(const QByteArray &filename) |
| Utils::FileName | fromString(const QString &filename) |
| Utils::FileName | fromString(const QString &filename, const QString &defaultExtension) |
| Utils::FileName | fromUserInput(const QString &filename) |
| Utils::FileName | fromUtf8(const char *filename, int filenameSize = -1) |
Detailed Description
The FileName class is a light-weight convenience class for filenames.
On windows filenames are compared case insensitively.
Member Function Documentation
FileName::FileName()
Default constructs an instance of FileName.
FileName::FileName(const QFileInfo &info)
Default constructs an instance of FileName.