Changeset View
Changeset View
Standalone View
Standalone View
src/qmljsc/moduleloading/qtqmlmoduleloader.h
- This file was copied to src/qmljsc/ir/builtintypes.h.
Show All 27 Lines | |||||
28 | 28 | | |||
29 | namespace QmlJSc { | 29 | namespace QmlJSc { | ||
30 | 30 | | |||
31 | namespace IR { | 31 | namespace IR { | ||
32 | class Module; | 32 | class Module; | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | /** | 35 | /** | ||
36 | * This class creates the QtQml module, including all the basic types that exist | 36 | * This class is used when loading the QtQml module. | ||
37 | * in QML and ECMAScript. Especially as there's no module for the ECMAScript | | |||
38 | * API, we have an extra loader class for it. | | |||
39 | */ | 37 | */ | ||
40 | class QtQmlModuleLoader : public AbstractModuleLoader | 38 | class QtQmlModuleLoader : public AbstractModuleLoader | ||
41 | { | 39 | { | ||
42 | public: | 40 | public: | ||
jangmarker: documentation needs update | |||||
43 | static QtQmlModuleLoader *create(IR::Module *module); | 41 | static QtQmlModuleLoader *create(IR::Module *module); | ||
44 | 42 | | |||
45 | bool canLoad() override; | 43 | bool canLoad() override; | ||
46 | void doLoad() override; | 44 | void doLoad() override; | ||
47 | 45 | | |||
48 | private: | 46 | private: | ||
49 | QtQmlModuleLoader(IR::Module *module); | 47 | QtQmlModuleLoader(IR::Module *module); | ||
50 | }; | 48 | }; | ||
51 | 49 | | |||
52 | } // namespace QMLJSc | 50 | } // namespace QMLJSc | ||
53 | 51 | | |||
54 | #endif // QTQMLMODULELOADER_H | 52 | #endif // QTQMLMODULELOADER_H |
documentation needs update