Added dialogs to change home and work locations.
[ptas] / zouba / uicontroller.h
1 #ifndef UICONTROLLER_H
2 #define UICONTROLLER_H
3
4 #include "routedata.h"
5 #include "location.h"
6
7 #include <QObject>
8
9 class Ui;
10
11 class UiController : public QObject
12 {
13   Q_OBJECT
14
15 public:
16   UiController( Ui *ui );
17   ~UiController();
18
19 public Q_SLOTS:
20   void displayRoute( const QList<RouteData> &routeData );
21
22 Q_SIGNALS:
23   void buttonClicked();
24   void destinationChanged( Location *newDestination );
25
26 private Q_SLOTS:
27   void changeDestination( int id );
28   void setHomeButtonValid();
29   void setWorkButtonValid();
30
31 private:
32   void setButtonValid( int id );
33
34 private:
35   QList<Location*> destination;
36   Ui *ui;
37   int currentDestination;
38 };
39 #endif // UICONTROLLER_H
40