LibEngsas
|
Represents the version from an application. More...
#include <version.h>
Public Member Functions | |
Version () | |
Version (QString version) | |
Version (int major, int minor, int patch, int rc) | |
bool | isValid () const |
QString | toString () const |
void | setMajor (int value) |
int | maj () const |
Returns the major version. | |
void | setMinor (int value) |
int | min () const |
Returns the minor version. | |
void | setPatch (int value) |
int | patch () const |
void | setRc (int value) |
int | rc () const |
bool | operator== (const Version &rhs) const |
bool | operator!= (const Version &rhs) const |
bool | operator< (const Version &rhs) const |
bool | operator<= (const Version &rhs) const |
bool | operator> (const Version &rhs) const |
bool | operator>= (const Version &rhs) const |
Static Public Member Functions | |
static Version | fromString (QString versionString) |
Private Attributes | |
int | myMajor |
int | myMinor |
int | myPatch |
int | myRc |
Represents the version from an application.
It can handle strings like "0.2.1-rc2" or "0.3.2".
Version::Version | ( | ) |
Version::Version | ( | QString | version | ) |
Version::Version | ( | int | major, |
int | minor, | ||
int | patch, | ||
int | rc | ||
) |
|
static |
bool Version::isValid | ( | ) | const |
int Version::maj | ( | ) | const |
Returns the major version.
Not named major, because conflicts with gnu_dev_major
int Version::min | ( | ) | const |
Returns the minor version.
Not named minor, because conflicts with gnu_dev_minor.
bool Version::operator!= | ( | const Version & | rhs | ) | const |
bool Version::operator< | ( | const Version & | rhs | ) | const |
bool Version::operator<= | ( | const Version & | rhs | ) | const |
bool Version::operator== | ( | const Version & | rhs | ) | const |
bool Version::operator> | ( | const Version & | rhs | ) | const |
bool Version::operator>= | ( | const Version & | rhs | ) | const |
int Version::patch | ( | ) | const |
int Version::rc | ( | ) | const |
void Version::setMajor | ( | int | value | ) |
void Version::setMinor | ( | int | value | ) |
void Version::setPatch | ( | int | value | ) |
void Version::setRc | ( | int | value | ) |
QString Version::toString | ( | ) | const |
|
private |
|
private |
|
private |
|
private |