diff Apps/DeDupe.cpp @ 30:1072257d2bab

Refactor Apps/Binaries into a separate directory.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 06 Sep 2012 18:39:01 +0200
parents DeDupe.cpp@b2c2c2bf2bbd
children f711ddb56ae7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Apps/DeDupe.cpp	Thu Sep 06 18:39:01 2012 +0200
@@ -0,0 +1,24 @@
+#include "DataController.hpp"
+#include "Exception/Exception.hpp"
+
+#include <QtGui/QApplication>
+
+#include <iostream>
+
+int main(int argc, char *argv[]) {
+
+  try {
+    QApplication app(argc, argv);
+
+    DataController dc(true);
+
+    return app.exec();
+  }
+  catch (Exception& e) {
+    std::cerr << "Unrecoverable error: " << e.toString().toStdString();
+    exit(1);
+  }
+
+}
+
+