Changes: display route legs in table; removed message table/button
[ptas] / zouba / src / 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 changeRoute( int id );
29   void setHomeButtonValid();
30   void setWorkButtonValid();
31   void displayRouteDetail( int id );
32
33 private:
34   void setButtonValid( int id );
35
36 private:
37   QList<RouteData> m_routeData;
38   QList<Location*> m_destination;
39   Ui *m_ui;
40   int m_currentDestination;
41   int m_currentRoute;
42 };
43 #endif // UICONTROLLER_H
44