LibEngsas
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Version Class Reference

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

Detailed Description

Represents the version from an application.

It can handle strings like "0.2.1-rc2" or "0.3.2".

Constructor & Destructor Documentation

Version::Version ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Version::Version ( QString  version)

+ Here is the call graph for this function:

Version::Version ( int  major,
int  minor,
int  patch,
int  rc 
)

+ Here is the call graph for this function:

Member Function Documentation

Version Version::fromString ( QString  versionString)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Version::isValid ( ) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int Version::maj ( ) const

Returns the major version.

Not named major, because conflicts with gnu_dev_major

+ Here is the caller graph for this function:

int Version::min ( ) const

Returns the minor version.

Not named minor, because conflicts with gnu_dev_minor.

+ Here is the caller graph for this function:

bool Version::operator!= ( const Version rhs) const

+ Here is the call graph for this function:

bool Version::operator< ( const Version rhs) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Version::operator<= ( const Version rhs) const

+ Here is the caller graph for this function:

bool Version::operator== ( const Version rhs) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Version::operator> ( const Version rhs) const

+ Here is the call graph for this function:

bool Version::operator>= ( const Version rhs) const

+ Here is the call graph for this function:

int Version::patch ( ) const

+ Here is the caller graph for this function:

int Version::rc ( ) const

+ Here is the caller graph for this function:

void Version::setMajor ( int  value)

+ Here is the caller graph for this function:

void Version::setMinor ( int  value)

+ Here is the caller graph for this function:

void Version::setPatch ( int  value)

+ Here is the caller graph for this function:

void Version::setRc ( int  value)

+ Here is the caller graph for this function:

QString Version::toString ( ) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

int Version::myMajor
private
int Version::myMinor
private
int Version::myPatch
private
int Version::myRc
private

The documentation for this class was generated from the following files: