Changelog for 0.0.8
[harmattan/cameraplus] / declarative / plugin.cpp
index 13ffdbb..263328f 100644 (file)
 #include "cameraconfig.h"
 #include "videoplayer.h"
 #include "viewfinder.h"
+#include "capability.h"
+#include "imageresolution.h"
+#include "videoresolution.h"
+#include "quirks.h"
 #if defined(QT4)
 #include <QDeclarativeEngine>
 #elif defined(QT5)
@@ -94,7 +98,7 @@ void Plugin::registerTypes(const char *uri) {
   qmlRegisterUncreatableType<WhiteBalance>(uri, MAJOR, MINOR, "WhiteBalance", QObject::tr("Cannot create separate instance of WhiteBalance"));
   qmlRegisterUncreatableType<ColorTone>(uri, MAJOR, MINOR, "ColorTone", QObject::tr("Cannot create separate instance of ColorTone"));
   qmlRegisterUncreatableType<Exposure>(uri, MAJOR, MINOR, "Exposure", QObject::tr("Cannot create separate instance of Exposure"));
-  qmlRegisterUncreatableType<Aperture>(uri, MAJOR, MINOR, "Aperture", QObject::tr("Cannot create separate instance of Iso"));
+  qmlRegisterUncreatableType<Aperture>(uri, MAJOR, MINOR, "Aperture", QObject::tr("Cannot create separate instance of Aperture"));
   qmlRegisterUncreatableType<Iso>(uri, MAJOR, MINOR, "Iso", QObject::tr("Cannot create separate instance of Iso"));
   qmlRegisterUncreatableType<NoiseReduction>(uri, MAJOR, MINOR, "NoiseReduction", QObject::tr("Cannot create separate instance of NoiseReduction"));
   qmlRegisterUncreatableType<FlickerReduction>(uri, MAJOR, MINOR, "FlickerReduction", QObject::tr("Cannot create separate instance of FlickerReduction"));
@@ -120,6 +124,13 @@ void Plugin::registerTypes(const char *uri) {
 
   qmlRegisterType<VideoPlayer>("QtCameraExtras", MAJOR, MINOR, "VideoPlayer");
   qmlRegisterType<Viewfinder>(uri, MAJOR, MINOR, "Viewfinder");
+  qmlRegisterType<Capability>();
+
+  qmlRegisterType<ImageResolution>(uri, MAJOR, MINOR, "ImageResolution");
+  qmlRegisterType<VideoResolution>(uri, MAJOR, MINOR, "VideoResolution");
+
+  qmlRegisterUncreatableType<Quirks>(uri, MAJOR, MINOR, "Quirks",
+                         "Quirks can be obtained from Camera");
 }
 
 #if defined(QT4)