Added gallery integration
[harmattan/cameraplus] / src / main.cpp
index 45b7c85..f49dab1 100644 (file)
 #include "orientation.h"
 #include "geocode.h"
 #include "mountprotector.h"
+#include "trackerstore.h"
+#include "focusrectangle.h"
+#include "sharehelper.h"
+#include "deletehelper.h"
+#include "galleryhelper.h"
 
 static void initQuill() {
   // TODO: All these are hardcoded.
@@ -78,6 +83,11 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
   qmlRegisterType<Orientation>("CameraPlus", 1, 0, "Orientation");
   qmlRegisterType<Geocode>("CameraPlus", 1, 0, "ReverseGeocode");
   qmlRegisterType<MountProtector>("CameraPlus", 1, 0, "MountProtector");
+  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);