Class to Handle Aamp Events.
More...
#include <AampEventManager.h>
|
typedef std::queue< AAMPEventPtr > | EventWorkerDataQ |
|
typedef std::map< guint, bool > | AsyncEventList |
|
typedef std::map< guint, bool >::iterator | AsyncEventListIter |
|
Class to Handle Aamp Events.
Definition at line 55 of file AampEventManager.h.
◆ EventWorkerDataQ
◆ AsyncEventList
◆ AampEventManager()
Copy constructor disabled.
◆ AsyncEvent()
AampEventManager::AsyncEvent |
( |
| ) |
|
|
private |
◆ GetSourceID()
AampEventManager::GetSourceID |
( |
| ) |
|
|
private |
◆ SetCallbackAsDispatched()
AampEventManager::SetCallbackAsDispatched |
( |
guint |
id | ) |
|
|
private |
SetCallbackAsDispatched - Set callbackId as dispatched/done.
- Parameters
-
id | - CallbackId for the IdleEvent |
- Returns
- void
Definition at line 439 of file AampEventManager.cpp.
◆ SetCallbackAsPending()
AampEventManager::SetCallbackAsPending |
( |
guint |
id | ) |
|
|
private |
SetCallbackAsPending - Set callbackId as Pending/to be done.
- Parameters
-
id | - CallbackId for the IdleEvent |
- Returns
- void
Definition at line 460 of file AampEventManager.cpp.
◆ SendEventAsync()
AampEventManager::SendEventAsync |
( |
const AAMPEventPtr & |
eventData | ) |
|
|
private |
SendEventAsync - Function to send events Async.
- Parameters
-
- Returns
- void
Definition at line 342 of file AampEventManager.cpp.
◆ SendEventSync()
AampEventManager::SendEventSync |
( |
const AAMPEventPtr & |
eventData | ) |
|
|
private |
SendEventSync - Function to send events sync.
- Parameters
-
- Returns
- void
Definition at line 368 of file AampEventManager.cpp.
◆ SetFakeTuneFlag()
void AampEventManager::SetFakeTuneFlag |
( |
bool |
isFakeTuneSetting | ) |
|
SetFakeTuneFlag - Some events are restricted for FakeTune.
- Parameters
-
isFakeTuneSetting | - True for FakeTune |
- Returns
- void
Definition at line 236 of file AampEventManager.cpp.
◆ SetAsyncTuneState()
void AampEventManager::SetAsyncTuneState |
( |
bool |
isAsyncTuneSetting | ) |
|
SetAsyncTuneState - Flag for Async Tune.
- Parameters
-
isAsyncTuneSetting | - True for Async tune |
- Returns
- void
Definition at line 246 of file AampEventManager.cpp.
◆ SetPlayerState()
SetPlayerState - Flag to update player state.
- Parameters
-
- Returns
- void
Definition at line 264 of file AampEventManager.cpp.
◆ SendEvent()
SendEvent - Generic function to send events.
- Parameters
-
- Returns
- void
Definition at line 274 of file AampEventManager.cpp.
◆ AddListenerForAllEvents()
void AampEventManager::AddListenerForAllEvents |
( |
EventListener * |
eventListener | ) |
|
AddListenerForAllEvents - Register one listener for all events.
- Parameters
-
eventListener | - listerner for events |
- Returns
- void
Definition at line 125 of file AampEventManager.cpp.
◆ RemoveListenerForAllEvents()
void AampEventManager::RemoveListenerForAllEvents |
( |
EventListener * |
eventListener | ) |
|
RemoveListenerForAllEvents - Remove listener for all events.
- Parameters
-
eventListener | - listerner for events |
- Returns
- void
Definition at line 140 of file AampEventManager.cpp.
◆ AddEventListener()
AddEventListener - Register listener for one eventtype.
- Parameters
-
eventType | - Aamp Event type |
eventListener | - listerner for events |
- Returns
- void
Definition at line 155 of file AampEventManager.cpp.
◆ RemoveEventListener()
RemoveEventListener - Remove one listener registration for one event.
- Parameters
-
eventType | - Aamp Event type |
eventListener | - listerner for events |
- Returns
- void
Definition at line 179 of file AampEventManager.cpp.
◆ IsSpecificEventListenerAvailable()
bool AampEventManager::IsSpecificEventListenerAvailable |
( |
AAMPEventType |
eventType | ) |
|
IsSpecificEventListenerAvailable - Check if this particular listener present for this event.
- Parameters
-
- Returns
- True if listner present
Definition at line 206 of file AampEventManager.cpp.
◆ FlushPendingEvents()
void AampEventManager::FlushPendingEvents |
( |
| ) |
|
FlushPendingEvents - Clear all pending events from EventManager.
- Returns
- void
Definition at line 85 of file AampEventManager.cpp.
◆ operator=()
assignment operator disabled
◆ mIsFakeTune
bool AampEventManager::mIsFakeTune |
|
private |
◆ mAsyncTuneEnabled
bool AampEventManager::mAsyncTuneEnabled |
|
private |
◆ mPlayerState
Player state flag , updated only at start and Release
Definition at line 61 of file AampEventManager.h.
◆ mMutexVar
pthread_mutex_t AampEventManager::mMutexVar |
|
private |
Mutex variable to handle pending and dispatch operation
Definition at line 62 of file AampEventManager.h.
◆ mEventPriority
int AampEventManager::mEventPriority |
|
private |
◆ mEventListeners
ListenerData* AampEventManager::mEventListeners[AAMP_MAX_NUM_EVENTS] |
|
private |
◆ mEventStats
int AampEventManager::mEventStats[AAMP_MAX_NUM_EVENTS] |
|
private |
The documentation for this class was generated from the following files: