4 #include "uicontroller.h"
6 #include "gpscontroller.h"
13 int main(int argc, char *argv[] )
15 QApplication app(argc, argv);
16 QMainWindow *widget = new QMainWindow;
20 UiController *uiController = new UiController( &ui );
22 Route *route = new Route();
25 route, SIGNAL( routeReady( RouteData ) ),
26 uiController, SLOT( displayRoute( RouteData ) )
29 GpsController *gpsController = new GpsController();
30 Location *to = new Location();
33 gpsController, SIGNAL( locationChanged( Location ) ),
34 route, SLOT( setFromLocation( Location ) )
37 to, SIGNAL( becomeValid() ),
38 route, SLOT( setToLocation() )
41 ui.homeaddress->setText( "GPS" );
42 ui.workaddress->setText( work );
44 gpsController->startGps();
45 to->resolveAddress( work );
48 uiController, SIGNAL( workAddressChanged( QString ) ),
49 to, SLOT( resolveAddress( QString ) )