2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsprojectversion.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-28 22:14:09 +00:00
|
|
|
|
|
|
|
class QgsProjectVersion
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
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.
|
|
|
|
%End
|
|
|
|
|
2011-03-28 22:14:09 +00:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprojectversion.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2011-03-28 22:14:09 +00:00
|
|
|
|
|
|
|
QgsProjectVersion();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Creates a new NULL version
|
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsProjectVersion( int major, int minor, int sub, const QString &name = "" );
|
|
|
|
QgsProjectVersion( const QString &string );
|
2011-03-28 22:14:09 +00:00
|
|
|
int majorVersion();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
int minorVersion();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
int subVersion();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
QString text();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
2016-12-19 22:07:55 +01:00
|
|
|
bool isNull() const;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Returns true if this is a NULL project version.
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
|
2015-10-27 14:51:52 +11:00
|
|
|
bool operator==( const QgsProjectVersion &other ) const;
|
2011-03-28 22:14:09 +00:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
bool operator!=( const QgsProjectVersion &other ) const;
|
|
|
|
%Docstring
|
|
|
|
Boolean not equal operator
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
|
2015-10-27 14:51:52 +11:00
|
|
|
bool operator>=( const QgsProjectVersion &other ) const;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Boolean >= operator
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
|
2015-10-27 14:51:52 +11:00
|
|
|
bool operator>( const QgsProjectVersion &other ) const;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
Boolean > operator
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2011-03-28 22:14:09 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsprojectversion.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|