Works now without any existing location settings, enabling a new user to start using it.
[ptas] / zouba / main.cpp
index 97ef478..7a0020e 100644 (file)
@@ -4,8 +4,9 @@
 #include "uicontroller.h"
 #include "location.h"
 #include "gpscontroller.h"
-
 #include "ytv.h"
+#include "messagehandler.h"
+#include "messagetable.h"
 
 #include <QDebug>
 #include <QObject>
@@ -14,7 +15,9 @@
 
 int main(int argc, char *argv[] )
 {
+  //qInstallMsgHandler( messageHandler );
   QApplication app(argc, argv);
+
   QMainWindow *mainWindow = new QMainWindow;
   Ui ui;
   ui.setupUi(mainWindow);
@@ -29,18 +32,18 @@ int main(int argc, char *argv[] )
       );
 
   QObject::connect(
-      gpsController, SIGNAL( locationChanged( Location ) ),
-      route, SLOT( setFromLocation( Location ) )
+      gpsController, SIGNAL( locationChanged( Location* ) ),
+      route, SLOT( setFromLocation( Location* ) )
       );
 
   QObject::connect(
-      uiController, SIGNAL( destinationChanged( Location ) ),
-      route, SLOT( setToLocation( Location ) )
+      uiController, SIGNAL( destinationChanged( Location* ) ),
+      route, SLOT( setToLocation( Location* ) )
     );
 
   QObject::connect(
       uiController, SIGNAL( buttonClicked() ),
-      gpsController, SLOT( startGps() )
+      gpsController, SLOT( getGps() )
     );
 
   mainWindow->show();