diff generator/typesystem.h @ 361:beaf4a2974d7

Autogeneration of QMetaType. First attempts at fixing qRegisterMetaType etc
author Max Samukha <maxter@maxter.com>
date Wed, 09 Jun 2010 11:08:56 +0300
parents 5896535a03cd
children
line wrap: on
line diff
--- a/generator/typesystem.h	Thu Jun 03 10:12:29 2010 +0300
+++ b/generator/typesystem.h	Wed Jun 09 11:08:56 2010 +0300
@@ -73,12 +73,21 @@
     };
 
     Include() : type(IncludePath) { }
-    Include(IncludeType t, const QString &nam) : type(t), name(nam) { };
+    Include(IncludeType t, const QString prot, const QString &nam) :
+            type(t),
+            protection(prot),
+            name(nam) { };
+
+    Include(IncludeType t, const QString &nam) :
+            type(t),
+            protection(QString()),
+            name(nam) { };
 
     bool isValid() { return !name.isEmpty(); }
 
     IncludeType type;
     QString name;
+    QString protection;
 
     QString toString() const;