Added gallery integration
[harmattan/cameraplus] / src / main.cpp
index 179e980..f49dab1 100644 (file)
@@ -41,6 +41,8 @@
 #include "trackerstore.h"
 #include "focusrectangle.h"
 #include "sharehelper.h"
+#include "deletehelper.h"
+#include "galleryhelper.h"
 
 static void initQuill() {
   // TODO: All these are hardcoded.
@@ -84,6 +86,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
   qmlRegisterType<TrackerStore>("CameraPlus", 1, 0, "TrackerStore");
   qmlRegisterType<FocusRectangle>("CameraPlus", 1, 0, "FocusRectangle");
   qmlRegisterType<ShareHelper>("CameraPlus", 1, 0, "ShareHelper");
+  qmlRegisterType<DeleteHelper>("CameraPlus", 1, 0, "DeleteHelper");
+  qmlRegisterType<GalleryHelper>("CameraPlus", 1, 0, "GalleryHelper");
 
   QUrl sourceUrl = QUrl::fromLocalFile(QDir::currentPath() + "/main.qml");
   view.setSource(sourceUrl);