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) | |
FileName & | appendPath(const QString &s) |
FileName & | appendString(const QString &str) |
FileName & | appendString(QChar str) |
bool | endsWith(const QString &s) const |
bool | exists() const |
QString | fileName(int pathComponents = 0) const |
bool | isChildOf(const FileName &s) const |
bool | isChildOf(const QDir &dir) const |
FileName | parentDir() const |
FileName | relativeChildPath(const FileName &parent) const |
QFileInfo | toFileInfo() const |
const QString & | toString() const |
QString | toUserOutput() const |
bool | operator!=(const FileName &other) const |
bool | operator<(const FileName &other) const |
bool | operator<=(const FileName &other) const |
bool | operator==(const FileName &other) const |
bool | operator>(const FileName &other) const |
bool | operator>=(const FileName &other) const |
Static Public Members
FileName | fromLatin1(const QByteArray &filename) |
FileName | fromString(const QString &filename) |
FileName | fromString(const QString &filename, const QString &defaultExtension) |
FileName | fromUserInput(const QString &filename) |
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.