5 #include "previewprovider.h"
6 #include "capability.h"
11 #include "videotorch.h"
12 #include "whitebalance.h"
13 #include "colortone.h"
15 #include <QtDeclarative>
17 #define URI "QtCamera"
21 void Plugin::registerTypes(QDeclarativeEngine *engine) {
22 qmlRegisterType<Camera>(URI, MAJOR, MINOR, "Camera");
23 qmlRegisterType<ImageMode>(URI, MAJOR, MINOR, "ImageMode");
24 qmlRegisterType<VideoMode>(URI, MAJOR, MINOR, "VideoMode");
25 qmlRegisterType<Zoom>(URI, MAJOR, MINOR, "Zoom");
26 qmlRegisterType<Flash>(URI, MAJOR, MINOR, "Flash");
27 qmlRegisterType<Scene>(URI, MAJOR, MINOR, "Scene");
28 qmlRegisterType<EvComp>(URI, MAJOR, MINOR, "EvComp");
29 qmlRegisterType<VideoTorch>(URI, MAJOR, MINOR, "VideoTorch");
30 qmlRegisterType<WhiteBalance>(URI, MAJOR, MINOR, "WhiteBalance");
31 qmlRegisterType<ColorTone>(URI, MAJOR, MINOR, "ColorTone");
32 qmlRegisterType<Mode>();
33 qmlRegisterType<Capability>();
35 engine->addImageProvider("preview", new PreviewProvider);