xbmc
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PVR::CPVRTimersContainer Class Reference
Inheritance diagram for PVR::CPVRTimersContainer:
Inheritance graph
[legend]

Public Types

typedef std::vector< std::shared_ptr< CPVRTimerInfoTag > > VecTimerInfoTag
 
typedef std::map< CDateTime, VecTimerInfoTag > MapTags
 

Public Member Functions

bool UpdateFromClient (const std::shared_ptr< CPVRTimerInfoTag > &timer)
 Add a timer tag to this container or update the tag if already present in this container. More...
 
std::shared_ptr< CPVRTimerInfoTagGetByClient (int iClientId, int iClientIndex) const
 Get the timer tag denoted by given client id and timer id. More...
 
const MapTags & GetTags () const
 Get the timertags map. More...
 

Protected Member Functions

void InsertEntry (const std::shared_ptr< CPVRTimerInfoTag > &newTimer)
 

Protected Attributes

CCriticalSection m_critSection
 
unsigned int m_iLastId = 0
 
MapTags m_tags
 

Member Function Documentation

◆ GetByClient()

std::shared_ptr< CPVRTimerInfoTag > CPVRTimersContainer::GetByClient ( int  iClientId,
int  iClientIndex 
) const

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

Parameters
iClientIdThe client id.
iClientIndexThe 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.

◆ UpdateFromClient()

bool CPVRTimersContainer::UpdateFromClient ( const std::shared_ptr< CPVRTimerInfoTag > &  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.

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