Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
PVR::CPVRTimersContainer Class Reference

#include <PVRTimers.h>

Inheritance diagram for PVR::CPVRTimersContainer:
PVR::CPVRTimers

Public Types

typedef std::vector< CPVRTimerInfoTagPtrVecTimerInfoTag
 
typedef std::map< CDateTime, VecTimerInfoTagMapTags
 

Public Member Functions

bool UpdateFromClient (const CPVRTimerInfoTagPtr &timer)
 Add a timer tag to this container or update the tag if already present in this container. More...
 
CPVRTimerInfoTagPtr GetByClient (int iClientId, unsigned int iClientTimerId) const
 Get the timer tag denoted by given client id and timer id. More...
 
const MapTagsGetTags () const
 Get the timertags map. More...
 

Protected Member Functions

void InsertTimer (const CPVRTimerInfoTagPtr &newTimer)
 

Protected Attributes

CCriticalSection m_critSection
 
unsigned int m_iLastId = 0
 
MapTags m_tags
 

Member Typedef Documentation

§ MapTags

§ VecTimerInfoTag

Member Function Documentation

§ GetByClient()

CPVRTimerInfoTagPtr CPVRTimersContainer::GetByClient ( int  iClientId,
unsigned int  iClientTimerId 
) const

Get the timer tag denoted by given client id and timer id.

Parameters
iClientIdThe client id.
iClientTimerIdThe timer id.
Returns
the timer tag if found, null otherwise.

§ GetTags()

const MapTags& PVR::CPVRTimersContainer::GetTags ( ) const
inline

Get the timertags map.

Returns
The map.

§ InsertTimer()

void CPVRTimersContainer::InsertTimer ( const CPVRTimerInfoTagPtr newTimer)
protected

§ UpdateFromClient()

bool CPVRTimersContainer::UpdateFromClient ( const CPVRTimerInfoTagPtr timer)

Add a timer tag to this container or update the tag if already present in this container.

Parameters
Thetimer tag
Returns
True, if the update was successful. False, otherwise.

Member Data Documentation

§ m_critSection

CCriticalSection PVR::CPVRTimersContainer::m_critSection
mutableprotected

§ m_iLastId

unsigned int PVR::CPVRTimersContainer::m_iLastId = 0
protected

§ m_tags

MapTags PVR::CPVRTimersContainer::m_tags
protected

The documentation for this class was generated from the following files: