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.

Utils::FileName &FileName::appendPath(const QString &s)

Utils::FileName &FileName::appendString(const QString &str)

Utils::FileName &FileName::appendString(int str)

bool FileName::endsWith(const QString &s) const

bool FileName::exists() const

QString FileName::fileName(int pathComponents = 0) const

[static] Utils::FileName FileName::fromLatin1(const QByteArray &filename)

[static] Utils::FileName FileName::fromString(const QString &filename)

[static] Utils::FileName FileName::fromString(const QString &filename, const QString &defaultExtension)

[static] Utils::FileName FileName::fromUserInput(const QString &filename)

[static] Utils::FileName FileName::fromUtf8(const char *filename, int filenameSize = -1)

bool FileName::isChildOf(const Utils::FileName &s) const

bool FileName::isChildOf(const QDir &dir) const

Utils::FileName FileName::parentDir() const

Utils::FileName FileName::relativeChildPath(const Utils::FileName &parent) const

QFileInfo FileName::toFileInfo() const

const QString &FileName::toString() const

QString FileName::toUserOutput() const

bool FileName::operator!=(const Utils::FileName &other) const

Utils::FileName FileName::operator+(const QString &s) const

bool FileName::operator<(const Utils::FileName &other) const

bool FileName::operator<=(const Utils::FileName &other) const

bool FileName::operator==(const Utils::FileName &other) const

bool FileName::operator>(const Utils::FileName &other) const

bool FileName::operator>=(const Utils::FileName &other) const