Initial: added urpo files!
[urpo] / src / main.cpp
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644 (file)
index 0000000..b3d18c3
--- /dev/null
@@ -0,0 +1,37 @@
+#include <QtGui/QApplication>
+#include <QTranslator>
+#include "urpomainwindow.h"
+#include <QLocale>
+
+/*! @mainpage Urpo - Unix Remote Printing Operation
+
+
+  @author Arto Hyvättinen
+  @version 0.9
+  @date 2010-06
+
+  Urpo prints to remote computer via cups and ssh. Urpo is designed for Maemo.
+
+  Urpo uses Qt library. It it translated into Finnish.
+
+  */
+
+
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+
+    QTranslator appTranslator;
+    appTranslator.load("urpo_" + QLocale::system().name(),":/");
+    a.installTranslator(&appTranslator);
+
+    UrpoMainWindow w;
+#if defined(Q_WS_S60)
+    w.showMaximized();
+#else
+    w.show();
+#endif
+
+    return a.exec();
+}