add bindings for QGraphicsSceneDragDropEvent
[qtscriptgenerator.git] / generator / typeparser.h
blob2156f594e556dd1512ec14d368b2d91d8408be91
1 /****************************************************************************
2 **
3 ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
4 **
5 ** This file is part of the Qt Script Generator project on Trolltech Labs.
6 **
7 ** This file may be used under the terms of the GNU General Public
8 ** License version 2.0 as published by the Free Software Foundation
9 ** and appearing in the file LICENSE.GPL included in the packaging of
10 ** this file. Please review the following information to ensure GNU
11 ** General Public Licensing requirements will be met:
12 ** http://www.trolltech.com/products/qt/opensource.html
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
17 ** sales department at sales@trolltech.com.
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 ****************************************************************************/
24 #ifndef TYPEPARSER_H
25 #define TYPEPARSER_H
27 #include <QList>
28 #include <QString>
29 #include <QStringList>
31 class TypeParser
33 public:
34 struct Info
36 Info() : is_reference(false), is_constant(false), is_busted(false), indirections(0) { }
37 QStringList qualified_name;
38 QStringList arrays;
39 QList<Info> template_instantiations;
40 uint is_reference : 1;
41 uint is_constant : 1;
42 uint is_busted : 1;
43 uint indirections : 5;
45 QString toString() const;
46 QString instantiationName() const;
49 static Info parse(const QString &str);
52 #endif // TYPEPARSER_H