![]() |
openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
|
#include <epgcache.h>
Classes | |
struct | Message |
Public Types | |
enum | { SIMILAR_BROADCASTINGS_SEARCH , EXAKT_TITLE_SEARCH , PARTIAL_TITLE_SEARCH , START_TITLE_SEARCH , END_TITLE_SEARCH , PARTIAL_DESCRIPTION_SEARCH , CRID_SEARCH } |
enum | { CRID_EPISODE = 1 , CRID_SERIES = 2 } |
enum | { CASE_CHECK , NO_CASE_CHECK , REGEX_CHECK } |
enum | { PRIVATE =0 , NOWNEXT =1 , SCHEDULE =2 , SCHEDULE_OTHER =4 , MHW =8 , FREESAT_NOWNEXT =16 , FREESAT_SCHEDULE =32 , FREESAT_SCHEDULE_OTHER =64 , VIASAT =256 , NETMED_SCHEDULE =512 , NETMED_SCHEDULE_OTHER =1024 , VIRGIN_NOWNEXT =2048 , VIRGIN_SCHEDULE =4096 , ATSC_EIT =8192 , OPENTV =16384 , EPG_IMPORT =0x80000000 } |
Public Member Functions | |
void | crossepgImportEPGv21 (std::string dbroot) |
void | clear () |
void | save () |
void | load () |
void | timeUpdated () |
void | flushEPG (int sid, int onid, int tsid) |
void | flushEPG (const uniqueEPGKey &s=uniqueEPGKey(), bool lock=true) |
eEPGCache () | |
~eEPGCache () | |
void | setCacheFile (const char *filename) |
RESULT | startTimeQuery (const eServiceReference &service, time_t begin=-1, int minutes=-1) |
RESULT | saveEventToFile (const char *filename, const eServiceReference &service, int eit_event_id, time_t begTime, time_t endTime) |
RESULT | lookupEventId (const eServiceReference &service, int event_id, Event *&) |
RESULT | lookupEventTime (const eServiceReference &service, time_t, Event *&, int direction=0) |
Look up an event in the EPG database by service reference and time. The service reference is specified in service . The lookup time is in t . The direction specifies whether to return the event matching t , its predecessor or successor. More... | |
RESULT | getNextTimeEntry (Event *&) |
PyObject * | lookupEvent (SWIG_PYOBJECT(ePyObject) list, SWIG_PYOBJECT(ePyObject) convertFunc=(PyObject *) 0) |
const char * | casetypestr (int value) |
PyObject * | search (SWIG_PYOBJECT(ePyObject)) |
SWIG_VOID (RESULT) lookupEventId(const eServiceReference &service | |
SWIG_VOID (RESULT) lookupEventTime(const eServiceReference &service | |
SWIG_VOID (RESULT) getNextTimeEntry(ePtr< eServiceEvent > &SWIG_OUTPUT) | |
void | setEpgmaxdays (unsigned int epgmaxdays) |
void | setEpgHistorySeconds (time_t seconds) |
void | setEpgSources (unsigned int mask) |
unsigned int | getEpgSources () |
unsigned int | getEpgmaxdays () |
void | submitEventData (const std::vector< eServiceReferenceDVB > &serviceRefs, long start, long duration, const char *title, const char *short_summary, const char *long_description, std::vector< uint8_t > event_types, std::vector< eit_parental_rating > parental_ratings, uint16_t event_id=0) |
Import EPG events into the EPG database. More... | |
void | importEvents (SWIG_PYOBJECT(ePyObject) serviceReferences, SWIG_PYOBJECT(ePyObject) list) |
Import EPG events from Python into the EPG database. Each event in the list is added to each service in the serviceReferences list. More... | |
void | importEvent (SWIG_PYOBJECT(ePyObject) serviceReference, SWIG_PYOBJECT(ePyObject) list) |
Import EPG events from Python into the EPG database. Each event in the list is added to each service in the serviceReferences list. More... | |
![]() | |
eMainloop () | |
virtual | ~eMainloop () |
void | quit (int ret=0) |
int | iterate (unsigned int timeout=0, PyObject **res=0, SWIG_PYOBJECT(ePyObject) additional=(PyObject *) 0) |
int | runLoop () |
PyObject * | poll (SWIG_PYOBJECT(ePyObject) dict, SWIG_PYOBJECT(ePyObject) timeout) |
void | interruptPoll () |
void | reset () |
Static Public Member Functions | |
static eEPGCache * | getInstance () |
Public Attributes | |
eFixedMessagePump< Message > | messages |
int | event_id |
int ePtr< eServiceEvent > & | SWIG_OUTPUT |
time_t | |
ePtr< eServiceEvent > & | SWIG_OUTPUT |
ePtr< eServiceEvent > int | direction =0) |
Friends | |
struct | eventData |
class | eEPGChannelData |
class | eEPGTransponderDataReader |
Additional Inherited Members | |
![]() | |
virtual int | _poll (struct pollfd *fds, nfds_t nfds, int timeout) |
anonymous enum |
anonymous enum |
eEPGCache::eEPGCache | ( | ) |
eEPGCache::~eEPGCache | ( | ) |
const char * eEPGCache::casetypestr | ( | int | value | ) |
void eEPGCache::clear | ( | ) |
void eEPGCache::crossepgImportEPGv21 | ( | std::string | dbroot | ) |
void eEPGCache::flushEPG | ( | const uniqueEPGKey & | s = uniqueEPGKey() , |
bool | lock = true |
||
) |
void eEPGCache::flushEPG | ( | int | sid, |
int | onid, | ||
int | tsid | ||
) |
unsigned int eEPGCache::getEpgmaxdays | ( | ) |
unsigned int eEPGCache::getEpgSources | ( | ) |
|
inlinestatic |
RESULT eEPGCache::getNextTimeEntry | ( | Event *& | result | ) |
void eEPGCache::importEvent | ( | SWIG_PYOBJECT(ePyObject) | serviceReference, |
SWIG_PYOBJECT(ePyObject) | list | ||
) |
Import EPG events from Python into the EPG database. Each event in the list
is added to each service in the serviceReferences
list.
serviceReferences | Any of: a single service reference string; a list of service reference strings; a single tuple with DVB triplet or a list of tuples with DVB triplets. A DVB triplet is (onid, tsid, sid) |
list | Either a list or a tuple of EPG events. Each event is a tuple of at least 6 elements:
|
void eEPGCache::importEvents | ( | SWIG_PYOBJECT(ePyObject) | serviceReferences, |
SWIG_PYOBJECT(ePyObject) | list | ||
) |
Import EPG events from Python into the EPG database. Each event in the list
is added to each service in the serviceReferences
list.
serviceReferences | Any of: a single service reference string; a list of service reference strings; a single tuple with DVB triplet or a list of tuples with DVB triplets. A DVB triplet is (onid, tsid, sid) |
list | Either a list or a tuple of EPG events. Each event is a tuple of at least 6 elements:
|
void eEPGCache::load | ( | ) |
PyObject * eEPGCache::lookupEvent | ( | SWIG_PYOBJECT(ePyObject) | list, |
SWIG_PYOBJECT(ePyObject) | convertFunc = (PyObject*)0 |
||
) |
RESULT eEPGCache::lookupEventId | ( | const eServiceReference & | service, |
int | event_id, | ||
Event *& | result | ||
) |
RESULT eEPGCache::lookupEventTime | ( | const eServiceReference & | service, |
time_t | t, | ||
Event *& | result, | ||
int | direction = 0 |
||
) |
Look up an event in the EPG database by service reference and time. The service reference is specified in service
. The lookup time is in t
. The direction
specifies whether to return the event matching t
, its predecessor or successor.
service | as an eServiceReference. |
t | the lookup time. If t == -1, look up the current time. |
result | the matched event, if one is found. |
direction | The event offset from the match. direction > 0 return the earliest event that starts after t. direction == 0 return the event that spans t. If t is spanned by a gap in the EPG, return None. direction < 0 return the event immediately before the event that spans t. * If t is spanned by a gap in the EPG, return the event immediately before the gap. |
result
, -1 for unsuccessful. In a call from Python, a return of -1 corresponds to a return value of None. void eEPGCache::save | ( | ) |
RESULT eEPGCache::saveEventToFile | ( | const char * | filename, |
const eServiceReference & | service, | ||
int | eit_event_id, | ||
time_t | begTime, | ||
time_t | endTime | ||
) |
PyObject * eEPGCache::search | ( | SWIG_PYOBJECT(ePyObject) | ) |
void eEPGCache::setCacheFile | ( | const char * | filename | ) |
void eEPGCache::setEpgHistorySeconds | ( | time_t | seconds | ) |
void eEPGCache::setEpgmaxdays | ( | unsigned int | epgmaxdays | ) |
void eEPGCache::setEpgSources | ( | unsigned int | mask | ) |
RESULT eEPGCache::startTimeQuery | ( | const eServiceReference & | service, |
time_t | begin = -1 , |
||
int | minutes = -1 |
||
) |
void eEPGCache::submitEventData | ( | const std::vector< eServiceReferenceDVB > & | serviceRefs, |
long | start, | ||
long | duration, | ||
const char * | title, | ||
const char * | short_summary, | ||
const char * | long_description, | ||
std::vector< uint8_t > | event_types, | ||
std::vector< eit_parental_rating > | parental_ratings, | ||
uint16_t | event_id = 0 |
||
) |
Import EPG events into the EPG database.
serviceRefs | list of services that will receive this event |
start | start time of the event |
duration | duration of the event |
title | title of the event. Must not be NULL. |
short_summary | summary of the event |
long_description | full description of the event |
event_types | vector of event type/genre classification |
parental_ratings | vector of parental rating country/rating pairs |
eventId | optional EIT event id, defaults to 0 = auto-generated hash based on start time |
eEPGCache::SWIG_VOID | ( | RESULT | ) | & |
eEPGCache::SWIG_VOID | ( | RESULT | ) | const & |
eEPGCache::SWIG_VOID | ( | RESULT | ) | const & |
void eEPGCache::timeUpdated | ( | ) |
|
friend |
|
friend |
|
friend |
ePtr<eServiceEvent> int eEPGCache::direction =0) |
int eEPGCache::event_id |
eFixedMessagePump<Message> eEPGCache::messages |
int ePtr<eServiceEvent>& eEPGCache::SWIG_OUTPUT |
ePtr<eServiceEvent>& eEPGCache::SWIG_OUTPUT |
eEPGCache::time_t |