QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsProjectVersion Class Reference

A class to describe the version of a project. More...

#include <qgsprojectversion.h>

Public Member Functions

 QgsProjectVersion ()
 
 ~QgsProjectVersion ()
 
 QgsProjectVersion (int major, int minor, int sub, QString name="")
 
 QgsProjectVersion (QString string)
 
int majorVersion ()
 
int minorVersion ()
 
int subVersion ()
 
QString text ()
 
bool operator== (const QgsProjectVersion &other)
 
bool operator>= (const QgsProjectVersion &other)
 
bool operator> (const QgsProjectVersion &other)
 

Detailed Description

A class to describe the version of a project.

Used in places where you need to check if the current version of QGIS is greater than the one used to create a project file.

Constructor & Destructor Documentation

QgsProjectVersion::QgsProjectVersion ( )
inline
QgsProjectVersion::~QgsProjectVersion ( )
inline
QgsProjectVersion::QgsProjectVersion ( int  major,
int  minor,
int  sub,
QString  name = "" 
)
QgsProjectVersion::QgsProjectVersion ( QString  string)

Member Function Documentation

int QgsProjectVersion::majorVersion ( )
inline
int QgsProjectVersion::minorVersion ( )
inline
bool QgsProjectVersion::operator== ( const QgsProjectVersion other)

Boolean equal operator

bool QgsProjectVersion::operator> ( const QgsProjectVersion other)

Boolean > operator

bool QgsProjectVersion::operator>= ( const QgsProjectVersion other)

Boolean >= operator

int QgsProjectVersion::subVersion ( )
inline
QString QgsProjectVersion::text ( void  )

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