Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
qgsprojectfiletransform.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprojectfiletransform.h - description
3  -------------------
4  begin : Sun 15 dec 2007
5  copyright : (C) 2007 by Magnus Homann
6  email : magnus at homann.se
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
25 /* $Id$ */
26 
27 #ifndef QGSPROJECTFILETRANSFORM_H
28 #define QGSPROJECTFILETRANSFORM_H
29 
30 #include <QString>
31 #include <QDomDocument>
32 #include <vector>
33 #include "qgsprojectversion.h"
34 
36 {
37  public:
38  //Default constructor
39  //QgsProjectfiletransform() {}
41 
46  QgsProjectFileTransform( QDomDocument & domDocument,
47  QgsProjectVersion version )
48  {
49  mDom = domDocument;
50  mCurrentVersion = version;
51  }
52 
53 
54  bool updateRevision( QgsProjectVersion version );
55 
58  void dump();
59 
60 
61  private:
62 
63  typedef struct
64  {
67  void ( QgsProjectFileTransform::* transformFunc )();
68  } transform;
69 
71 
72  QDomDocument mDom;
74 
75  // Transformer functions below. Declare functions here,
76  // define them in qgsprojectfiletransform.cpp and add them
77  // to the transformArray with proper version number
78  void transformNull() {}; // Do absolutely nothing
79  void transform081to090();
80  void transform091to0100();
81  void transform0100to0110();
82  void transform0110to1000();
83  void transform1100to1200();
84  void transform1400to1500();
85 };
86 
87 
88 #endif //QGSPROJECTFILETRANSFORM_H
89