- // result Event * must be deleted by caller of lookupEvent
- inline RESULT lookupEvent(const eServiceReferenceDVB &service, int event_id, Event *& );
- inline RESULT lookupEvent(const eServiceReferenceDVB &service, time_t , Event *& );
-
- // methods for faster use.. but not thread save ..
- // Lock and Unlock should be used !!
- RESULT lookupEvent(const eServiceReferenceDVB &service, int event_id, const eventData *& );
- RESULT lookupEvent(const eServiceReferenceDVB &service, time_t , const eventData *& );
-
- inline RESULT getEventMap(const eServiceReferenceDVB &service, const eventMap *& );
- inline RESULT getTimeMap(const eServiceReferenceDVB &service, const timeMap *& );
+ // at moment just for one service..
+ RESULT startTimeQuery(const eServiceReference &service, time_t begin=-1, int minutes=-1);
+
+#ifndef SWIG
+ // eventData's are plain entrys out of the cache.. it's not safe to use them after cache unlock
+ // but its faster in use... its not allowed to delete this pointers via delete or free..
+ RESULT lookupEventId(const eServiceReference &service, int event_id, const eventData *&);
+ RESULT lookupEventTime(const eServiceReference &service, time_t, const eventData *&, int direction=0);
+ RESULT getNextTimeEntry(const eventData *&);
+
+ // eit_event_struct's are plain dvb eit_events .. it's not safe to use them after cache unlock
+ // its not allowed to delete this pointers via delete or free..
+ RESULT lookupEventId(const eServiceReference &service, int event_id, const eit_event_struct *&);
+ RESULT lookupEventTime(const eServiceReference &service, time_t , const eit_event_struct *&, int direction=0);
+ RESULT getNextTimeEntry(const eit_event_struct *&);
+
+ // Event's are parsed epg events.. it's safe to use them after cache unlock
+ // after use this Events must be deleted (memleaks)
+ RESULT lookupEventId(const eServiceReference &service, int event_id, Event* &);
+ RESULT lookupEventTime(const eServiceReference &service, time_t, Event* &, int direction=0);
+ RESULT getNextTimeEntry(Event *&);
+#endif
+ enum {
+ SIMILAR_BROADCASTINGS_SEARCH,
+ EXAKT_TITLE_SEARCH,
+ PARTIAL_TITLE_SEARCH
+ };
+ enum {
+ CASE_CHECK,
+ NO_CASE_CHECK
+ };
+ PyObject *lookupEvent(SWIG_PYOBJECT(ePyObject) list, SWIG_PYOBJECT(ePyObject) convertFunc=(PyObject*)0);
+ PyObject *search(SWIG_PYOBJECT(ePyObject));
+
+ // eServiceEvent are parsed epg events.. it's safe to use them after cache unlock
+ // for use from python ( members: m_start_time, m_duration, m_short_description, m_extended_description )
+ SWIG_VOID(RESULT) lookupEventId(const eServiceReference &service, int event_id, ePtr<eServiceEvent> &SWIG_OUTPUT);
+ SWIG_VOID(RESULT) lookupEventTime(const eServiceReference &service, time_t, ePtr<eServiceEvent> &SWIG_OUTPUT, int direction=0);
+ SWIG_VOID(RESULT) getNextTimeEntry(ePtr<eServiceEvent> &SWIG_OUTPUT);