00001 /*************************************************************************** 00002 qgsprojectfile.h - description 00003 ------------------- 00004 begin : Sun 15 dec 2007 00005 copyright : (C) 2007 by Magnus Homann 00006 email : magnus at homann.se 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSPROJECTVERSION_H 00019 #define QGSPROJECTVERSION_H 00020 00021 #include <QString> 00022 #include <QStringList> 00023 00030 class QgsProjectVersion 00031 { 00032 00033 public: 00034 00035 QgsProjectVersion() {}; 00036 ~QgsProjectVersion() {}; 00037 QgsProjectVersion( int major, int minor, int sub, QString name = "" ); 00038 QgsProjectVersion( QString string ); 00039 int majorVersion() { return mMajor;}; 00040 int minorVersion() { return mMinor;}; 00041 int subVersion() { return mSub;}; 00042 QString text(); 00045 bool operator==( const QgsProjectVersion &other ); 00046 00047 00050 bool operator>=( const QgsProjectVersion &other ); 00051 00054 bool operator>( const QgsProjectVersion &other ); 00055 00056 private: 00057 int mMajor; 00058 int mMinor; 00059 int mSub; 00060 QString mName; 00061 }; 00062 00063 #endif // QGSPROJECTVERSION_H