QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 (int major, int minor, int sub, QString name="")
 QgsProjectVersion (QString string)
 ~QgsProjectVersion ()
int majorVersion ()
int minorVersion ()
bool operator== (const QgsProjectVersion &other)
bool operator> (const QgsProjectVersion &other)
bool operator>= (const QgsProjectVersion &other)
int subVersion ()
QString text ()

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.

Definition at line 30 of file qgsprojectversion.h.

Constructor & Destructor Documentation

QgsProjectVersion::QgsProjectVersion ( )
inline

Definition at line 35 of file qgsprojectversion.h.

QgsProjectVersion::~QgsProjectVersion ( )
inline

Definition at line 36 of file qgsprojectversion.h.

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

Definition at line 24 of file qgsprojectversion.cpp.

QgsProjectVersion::QgsProjectVersion ( QString  string)

Definition at line 32 of file qgsprojectversion.cpp.

Member Function Documentation

int QgsProjectVersion::majorVersion ( )
inline

Definition at line 39 of file qgsprojectversion.h.

int QgsProjectVersion::minorVersion ( )
inline

Definition at line 40 of file qgsprojectversion.h.

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

Boolean equal operator

Definition at line 59 of file qgsprojectversion.cpp.

bool QgsProjectVersion::operator> ( const QgsProjectVersion other)

Boolean > operator

Definition at line 77 of file qgsprojectversion.cpp.

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

Boolean >= operator

Definition at line 68 of file qgsprojectversion.cpp.

int QgsProjectVersion::subVersion ( )
inline

Definition at line 41 of file qgsprojectversion.h.

QString QgsProjectVersion::text ( void  )

Definition at line 84 of file qgsprojectversion.cpp.


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