Garmin Fleet Management Controller  2.19.0
EventListener.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * EventListener.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef EventListener_H
11 #define EventListener_H
12 
13 class EventListener;
14 
15 #include "Event.h"
16 
17 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
25 {
26 public:
27  EventListener();
28  virtual ~EventListener();
29 
30  //----------------------------------------------------------------------
38  //----------------------------------------------------------------------
39  virtual void onEvent
40  (
41  EventId aEventId,
42  uint32 aEventData,
43  void* aEventDataPtr,
44  BOOL handleNow
45  ) = 0;
46 };
47 
48 #endif
virtual void onEvent(EventId aEventId, uint32 aEventData, void *aEventDataPtr, BOOL handleNow)=0
Callback for when an event is posted.
EventListener()
Construct a new EventListener.
virtual ~EventListener()
Destructor.
EventId
Events generated by the FMI PC Application.
Definition: EventId.h:19
unsigned long int uint32
32-bit unsigned integer
Definition: garmin_types.h:66
Base class for objects that take action in response to an Event being posted.
Definition: EventListener.h:24