kodi
Classes | Public Member Functions | Static Public Attributes | List of all members
PVR::CGUIEPGGridContainerModel Class Reference
Collaboration diagram for PVR::CGUIEPGGridContainerModel:
Collaboration graph
[legend]

Public Member Functions

void Initialize (const std::unique_ptr< CFileItemList > &items, const CDateTime &gridStart, const CDateTime &gridEnd, int iFirstChannel, int iChannelsPerPage, int iFirstBlock, int iBlocksPerPage, int iRulerUnit, float fBlockSize)
 
void SetInvalid ()
 
void FindChannelAndBlockIndex (int channelUid, unsigned int broadcastUid, int eventOffset, int &newChannelIndex, int &newBlockIndex) const
 
void FreeChannelMemory (int keepStart, int keepEnd)
 
bool FreeProgrammeMemory (int firstChannel, int lastChannel, int firstBlock, int lastBlock)
 
void FreeRulerMemory (int keepStart, int keepEnd)
 
std::shared_ptr< CFileItemGetChannelItem (int iIndex) const
 
bool HasChannelItems () const
 
int ChannelItemsSize () const
 
int GetLastChannel () const
 
std::shared_ptr< CFileItemGetRulerItem (int iIndex) const
 
int RulerItemsSize () const
 
int GridItemsSize () const
 
bool IsSameGridItem (int iChannel, int iBlock1, int iBlock2) const
 
std::shared_ptr< CFileItemGetGridItem (int iChannel, int iBlock) const
 
int GetGridItemStartBlock (int iChannel, int iBlock) const
 
int GetGridItemEndBlock (int iChannel, int iBlock) const
 
CDateTime GetGridItemEndTime (int iChannel, int iBlock) const
 
float GetGridItemWidth (int iChannel, int iBlock) const
 
float GetGridItemOriginWidth (int iChannel, int iBlock) const
 
void DecreaseGridItemWidth (int iChannel, int iBlock, float fSize)
 
bool IsZeroGridDuration () const
 
const CDateTimeGetGridStart () const
 
const CDateTimeGetGridEnd () const
 
unsigned int GetGridStartPadding () const
 
unsigned int GetPageNowOffset () const
 
int GetNowBlock () const
 
int GetLastBlock () const
 
CDateTime GetStartTimeForBlock (int block) const
 
int GetBlock (const CDateTime &datetime) const
 
int GetFirstEventBlock (const std::shared_ptr< const CPVREpgInfoTag > &event) const
 
int GetLastEventBlock (const std::shared_ptr< const CPVREpgInfoTag > &event) const
 
bool IsEventMemberOfBlock (const std::shared_ptr< const CPVREpgInfoTag > &event, int iBlock) const
 
std::unique_ptr< CFileItemListGetCurrentTimeLineItems (int firstChannel, int numChannels) const
 

Static Public Attributes

static constexpr int MINSPERBLOCK = 5
 
static const int INVALID_INDEX = -1
 

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