Added a toggle button, and fields to set home and work addresses.
[ptas] / zouba / uicontroller.h
index 0ea3010..392962d 100644 (file)
@@ -17,8 +17,24 @@ public:
 public Q_SLOTS:
   void displayRoute( const RouteData &routeData );
 
+Q_SIGNALS:
+  void homeAddressChanged( QString );
+  void workAddressChanged( QString );
+  void directionChanged();
+
+private Q_SLOTS:
+  void setHomeAddress();
+  void setWorkAddress();
+  void toggleRoute();
+
 private:
   Ui::MainWindow *ui;
+  enum Direction {
+    WorkToHome,
+    HomeToWork
+  };
+
+  Direction route;
 };
 #endif // UICONTROLLER_H