Public Types | |
enum | MatchType { LeftToRight, AllEqual } |
Public Member Functions | |
FileAlias (const QString &name) | |
void | addAlias (const QString &val) |
Will ensure unique values. More... | |
void | addAliases (const QStringList &val) |
Will ensure unique values. More... | |
const QStringList & | aliases () const |
bool | isSameName (const QString &otherName) const |
Compares passed string to local name and checks if they're same. More... | |
bool | isValid () const |
Valid FileAlias has a name and at least one alias. More... | |
MatchType | matchType () const |
const QString & | name () const |
QVariant | serializeQVariant () const |
void | setAliases (const QStringList &val) |
void | setMatchType (MatchType matchType) |
void | setName (const QString &val) |
Static Public Member Functions | |
static FileAlias | deserializeQVariant (const QVariant &var) |
static FileAlias | freeDoom1Aliases () |
static QList< FileAlias > | freeDoom2Aliases () |
static QList< FileAlias > | standardWadAliases () |
Standard/default aliases for configuration init. More... | |
Definition at line 31 of file filealias.h.
void FileAlias::addAlias | ( | const QString & | val | ) |
Will ensure unique values.
Definition at line 38 of file filealias.cpp.
void FileAlias::addAliases | ( | const QStringList & | val | ) |
Will ensure unique values.
Definition at line 46 of file filealias.cpp.
bool FileAlias::isSameName | ( | const QString & | otherName | ) | const |
Compares passed string to local name and checks if they're same.
Definition at line 139 of file filealias.cpp.
bool FileAlias::isValid | ( | ) | const |
Valid FileAlias has a name and at least one alias.
Definition at line 144 of file filealias.cpp.
|
static |
Standard/default aliases for configuration init.
Definition at line 169 of file filealias.cpp.