Merge branch 'master' of git://labs.trolltech.com/qtscriptgenerator
[qtscriptgenerator/amarok.git] / generator / generatorsetqtscript.h
blob87236eb69caea9c0e6c41f5874a1971d46f00d5c
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 GENERATOR_SET_QT_SCRIPT_H
25 #define GENERATOR_SET_QT_SCRIPT_H
27 #include "generatorset.h"
28 #include "metaqtscriptbuilder.h"
30 class GeneratorSetQtScript : public GeneratorSet
32 Q_OBJECT
34 public:
35 GeneratorSetQtScript();
37 QString usage();
38 bool readParameters(const QMap<QString, QString> args);
40 void buildModel(const QString pp_file);
41 void dumpObjectTree();
43 QString generate( );
45 private:
46 MetaQtScriptBuilder builder;
50 #endif // GENERATOR_SET_QT_SCRIPT_H