Added facility to restore and save locations, and set existing location in home and...
[ptas] / zouba / main.cpp
index 46632e2..47402c8 100644 (file)
@@ -17,14 +17,11 @@ int main(int argc, char *argv[] )
 {
   qInstallMsgHandler( messageHandler );
   QApplication app(argc, argv);
+
   QMainWindow *mainWindow = new QMainWindow;
   Ui ui;
   ui.setupUi(mainWindow);
 
-  qDebug() << "1";
-  qDebug() << "2";
-  qDebug() << "3";
-
   UiController  *uiController  = new UiController( &ui );
   Route         *route         = new Route();
   GpsController *gpsController = new GpsController();
@@ -35,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();