Skip to content

Commit

Permalink
add bindings to QgsProjectVersion
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15633 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 28, 2011
1 parent 7138606 commit 747184f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/core.sip
Expand Up @@ -53,6 +53,7 @@
%Include qgspluginlayerregistry.sip
%Include qgspoint.sip
%Include qgsproject.sip
%Include qgsprojectversion.sip
%Include qgsprovidermetadata.sip
%Include qgsproviderregistry.sip
%Include qgsrasterbandstats.sip
Expand Down
37 changes: 37 additions & 0 deletions python/core/qgsprojectversion.sip
@@ -0,0 +1,37 @@
/** \ingroup core
* 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.
*/

class QgsProjectVersion
{
%TypeHeaderCode
#include "qgsprojectversion.h"
%End

public:

QgsProjectVersion();
~QgsProjectVersion();
QgsProjectVersion( int major, int minor, int sub, QString name = "" );
QgsProjectVersion( QString string );
int majorVersion();
int minorVersion();
int subVersion();
QString text();

/*! Boolean equal operator
*/
bool operator==( const QgsProjectVersion &other );

/*! Boolean >= operator
*/
bool operator>=( const QgsProjectVersion &other );

/*! Boolean > operator
*/
bool operator>( const QgsProjectVersion &other );

};

0 comments on commit 747184f

Please sign in to comment.