QgsProjectVersion Class Reference
[Core]

#include <qgsprojectversion.h>

List of all members.


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.

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)

Private Attributes

int mMajor
int mMinor
int mSub
QString mName


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.

References mMajor, mMinor, mName, and mSub.

QgsProjectVersion::QgsProjectVersion ( QString  string  ) 

Definition at line 32 of file qgsprojectversion.cpp.

References mMajor, mMinor, mName, mSub, QgsDebugMsg, and text().


Member Function Documentation

int QgsProjectVersion::majorVersion (  )  [inline]

Definition at line 39 of file qgsprojectversion.h.

References mMajor.

Referenced by QgsProjectFileTransform::dump().

int QgsProjectVersion::minorVersion (  )  [inline]

Definition at line 40 of file qgsprojectversion.h.

References mMinor.

Referenced by QgsProjectFileTransform::dump().

int QgsProjectVersion::subVersion (  )  [inline]

Definition at line 41 of file qgsprojectversion.h.

References mSub.

Referenced by QgsProjectFileTransform::dump().

QString QgsProjectVersion::text (  ) 

Definition at line 74 of file qgsprojectversion.cpp.

References mMajor, mMinor, mName, and mSub.

Referenced by QgsProjectVersion(), and QgsProject::read().

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

Boolean equal operator

Definition at line 49 of file qgsprojectversion.cpp.

References mMajor, mMinor, and mSub.

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

Boolean >= operator

Definition at line 58 of file qgsprojectversion.cpp.

References mMajor, mMinor, and mSub.

bool QgsProjectVersion::operator> ( const QgsProjectVersion other  ) 

Boolean > operator

Definition at line 67 of file qgsprojectversion.cpp.

References mMajor, mMinor, and mSub.


Member Data Documentation

int QgsProjectVersion::mMajor [private]

Definition at line 57 of file qgsprojectversion.h.

Referenced by majorVersion(), operator==(), operator>(), operator>=(), QgsProjectVersion(), and text().

int QgsProjectVersion::mMinor [private]

Definition at line 58 of file qgsprojectversion.h.

Referenced by minorVersion(), operator==(), operator>(), operator>=(), QgsProjectVersion(), and text().

int QgsProjectVersion::mSub [private]

Definition at line 59 of file qgsprojectversion.h.

Referenced by operator==(), operator>(), operator>=(), QgsProjectVersion(), subVersion(), and text().

QString QgsProjectVersion::mName [private]

Definition at line 60 of file qgsprojectversion.h.

Referenced by QgsProjectVersion(), and text().


The documentation for this class was generated from the following files:
Generated on Wed Jan 7 01:51:27 2009 for Quantum GIS API Documentation by  doxygen 1.5.1