All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteObserver.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "Routes.h"
7 #include "RouteCallback.h"
8 
9 namespace Eegeo
10 {
11  namespace Routes
12  {
13  namespace Fitting
14  {
16  {
17  RouteRepository& m_routeRepository;
18  RouteFittingService& m_routeFittingService;
19  NavGraphFittingInfoService& m_navGraphFittingInfoService;
20 
21  TRouteCallback<RouteObserver> m_addedCallback;
22  TRouteCallback<RouteObserver> m_removalCallback;
23 
24  void HandleRouteAdded(const Route* route);
25  void HandleRouteRemoved(const Route* route);
26 
27  public:
28  RouteObserver(RouteRepository& routeRepository,
29  RouteFittingService& routeFittingService,
30  NavGraphFittingInfoService& navGraphFittingInfoService);
31 
32  ~RouteObserver();
33  };
34  }
35  }
36 }