AfriGIS Map SDK (BB10)  v 1.0.0
Provides easy integration of AfriGIS Maps into BB10 platform.
AGMapViewDelegate.h
1 //
2 // AGMapViewDelegate.h
3 // AfrigisMap_001000
4 //
5 // Created by SDSL on 5/20/11.
6 // Copyright 2011 __MyCompanyName__. All rights reserved.
7 //
8 #ifndef AG_Map_View_Delegate
9 #define AG_Map_View_Delegate
10 #include <QtCore/QObject>
11 #include "AGMapDataStruct.hpp"
12 
13 //class AGMapView;
14 //class AGAnnotationView;
15 //class AGAnnotationProtocol;
16 //class AGOverlay;
17 //class AGOverlayView;
18 //class AGSearchRequest;
19 //class GeoCoordinate;
20 //class GeoAddress;
21 //class RouteDetails;
22 //struct AGGeoInformation;
23 //struct AGLocationCoordinate2D;
24 
25 class AnnotationView;
26 class Item;
27 class ImageItem;
28 
33 class AGMapViewDelegate : public QObject
34 {
35  Q_OBJECT
36 
37 public:
39  virtual ~AGMapViewDelegate() {}
40 
41  virtual void onTrackingFailure()=0;
42 
43 
49  virtual void onAnnotationViewAdded(AGGeoInformation*) = 0;
50 
56  virtual void onItemAdded(AGGeoInformation*) = 0;
57 
63  virtual void onItemLocationUpdated(AGGeoInformation*) = 0;
64 
72 
79  virtual void onItemRemoved(Item*, AGGeoInformation*) = 0;
80 
86  virtual void longPressEventFired(AGGeoInformation*) = 0;
87 
93  virtual void onClearMapFinished(AGGeoInformation*) = 0;
94 
100  virtual void onLocateMeEnded(AGGeoInformation*) = 0;
101 
107  virtual void onLocateMeRemoved(AGGeoInformation*) = 0;
108 
114  virtual void onTrackingUpdated(AGGeoInformation*) = 0;
115 
121  virtual void onTrackingStopped(AGGeoInformation*) = 0;
122 
129 
135  virtual void onTrafficLayerAdded(AGGeoInformation*) = 0;
136 
142  virtual void onTrafficLayerRemoved(AGGeoInformation*) = 0;
143 
150 
156  virtual void onRouteViewAdded(AGGeoInformation*) = 0;
157 
163  virtual void onRouteViewRemoved(AGGeoInformation*) = 0;
164 
170  virtual void onPinViewAdded(AGGeoInformation*) = 0;
171 
177  virtual void onPinViewRemoved(AGGeoInformation*) = 0;
178 
184  virtual void onZoomInStarted(AGGeoInformation*) = 0;
185 
191  virtual void onZoomInEnded(AGGeoInformation*) = 0;
192 
198  virtual void onZoomOutStarted(AGGeoInformation*) = 0;
199 
205  virtual void onZoomOutEnded(AGGeoInformation*) = 0;
206 
212  virtual void onPanStarted(AGGeoInformation*) = 0;
213 
219  virtual void onPanEnded(AGGeoInformation*) = 0;
220 
226  virtual void onImageItemPressEnded(ImageItem *) = 0;
227 
228 
229  //@optional
237 // AGAnnotationView* mapView(AGMapView* mapView, AGAnnotationProtocol* annotation);
238 
247 // don't know
248 // void mapView(AGMapView* mapView, AGAnnotationView* view, UIControl* control);
258 // AGOverlayView* mapView(AGMapView* mapView, AGOverlay* overlay);
265 // void mapViewDidEndZooming(AGMapView* mapView);
272 // void mapViewDidEndPanning(AGMapView* mapView);
280 // void mapViewDidEndPanning(AGMapView* mapView, Point2D panAmount);
281 
282 // void mapViewWillStartPanning(AGMapView* mapView);
290 // void mapView(AGMapView* mapView, AGLocationCoordinate2D* location);
298 // void mapView(AGMapView* mapView, AGAnnotationView* annotationView);
306 // void mapView(AGMapView* mapView, AGAnnotationView* annotationView);
313 // don't know
314 // void mapView(AGMapView* mapView, AGCoordinateRegion* region);
315 
322 // void mapView(AGMapView* mapView, QString* error);
323 
324 
331 // void mapViewAuthenticationSucceded(AGMapView* mapView);
332 
333 
343 // void mapView(AGMapView* mapView, AGSearchRequest* request, void *results, bool more);
344 
345 
354 // void mapView(AGMapView* mapView, AGSearchRequest* request, QString* error);
355 
363 // void mapView(AGMapView* mapView, GeoCoordinate* coordinate, GeoAddress* address);
364 
372 // void mapView(AGMapView* mapView, GeoCoordinate* coordinate, QString* error);
373 
374 
382 // void mapView(AGMapView* mapView, RouteDetails* routeDetails);
383 
384 // don't know
386 // void mapView(AGMapView* mapView, Point2D* contentOffSet, Rect3D* visibleRect, AGVisibleMapRegion* mapRegion);
387 
388  //If "Track Me" fails for some reason.
389 
390 };
391 
392 #endif /* AG_Map_View_Delegate */
virtual void onPanStarted(AGGeoInformation *)=0
Callback method prior Pan action starts.
virtual void onZoomInStarted(AGGeoInformation *)=0
Callback method prior Zoom In action starts.
virtual void onTrackingStopped(AGGeoInformation *)=0
Callback method after tracking stopped.
The AGMapViewDelegate defines a set of optional methods that you can use to receive map related updat...
Definition: AGMapViewDelegate.h:33
virtual void onZoomInEnded(AGGeoInformation *)=0
Callback method after Zoom In action ends.
virtual void onClearMapFinished(AGGeoInformation *)=0
Callback method after map is cleared.
virtual void onItemRemoved(Item *, AGGeoInformation *)=0
Callback method after Item removed.
virtual void onTrackingStoppedAndRemoved(AGGeoInformation *)=0
Callback method after tracking stopped and removed.
virtual void onItemLocationUpdated(AGGeoInformation *)=0
Callback method after Item's location is updated.
virtual void longPressEventFired(AGGeoInformation *)=0
Callback method after long press event on map.
Item interface that need to be implemented by all annotation item object. Currently CircleItem...
Definition: Item.hpp:25
View responsible for presenting annotations visually in map. Annotation view are loosely coupled to a...
Definition: AnnotationView.hpp:29
virtual void onPinViewAdded(AGGeoInformation *)=0
Callback method after Pin view added.
virtual void remainingTimeToUpdateTrafficLayer(AGGeoInformation *)=0
Periodic callback method to inform the client the time remaining to update traffic data...
virtual void onRouteViewAdded(AGGeoInformation *)=0
Callback method after route view added.
virtual void onPinViewRemoved(AGGeoInformation *)=0
Callback method after Pin view removed.
virtual void onRouteViewRemoved(AGGeoInformation *)=0
Callback method after route view removed.
virtual void onAnnotationViewAdded(AGGeoInformation *)=0
Callback method after annotation view successfully added.
virtual void onZoomOutStarted(AGGeoInformation *)=0
Callback method prior Zoom Out action starts.
virtual void onTrafficLayerRemoved(AGGeoInformation *)=0
Callback method after traffic layer removed.
virtual void onImageItemPressEnded(ImageItem *)=0
Callback method after Image Item being pressed.
Annotation Item object representing a rectangle area on map which is filled with provided image...
Definition: ImageItem.hpp:35
virtual void onPanEnded(AGGeoInformation *)=0
Callback method after Pan action ends.
virtual void onAnnotationViewRemoved(AnnotationView *, AGGeoInformation *)=0
Callback method after Annotation view removed.
virtual void onZoomOutEnded(AGGeoInformation *)=0
Callback method after Zoom Out action ends.
virtual void onItemAdded(AGGeoInformation *)=0
Callback method after Item successfully added to annotation view.
virtual void onLocateMeEnded(AGGeoInformation *)=0
Callback method after locating current location is finished.
AGGeoInformation It will provide current bounding box information.
Definition: AGMapDataStruct.hpp:125
virtual void onLocateMeRemoved(AGGeoInformation *)=0
Callback method after current location indicator is removed.
virtual void onTrackingUpdated(AGGeoInformation *)=0
Callback method after every current location update when tracking is on.
virtual void onTrafficLayerAdded(AGGeoInformation *)=0
Callback method after traffic layer added.