aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-07 22:12:21 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-07 22:12:21 +0000
commit35eb65423843d8e6aa8b614aaa4a39fa0b06993d (patch)
tree592aa187a179b24160fe775efab0dc23957b33e5 /lib
parent93ed16c960cbde34efe6dbe8c673b741d6edddb3 (diff)
downloadenigma2-35eb65423843d8e6aa8b614aaa4a39fa0b06993d.tar.gz
enigma2-35eb65423843d8e6aa8b614aaa4a39fa0b06993d.zip
fix comment for epgcache lookupEvent method (useable from python)
Diffstat (limited to 'lib')
-rw-r--r--lib/dvb/epgcache.cpp41
1 files changed, 22 insertions, 19 deletions
diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp
index 0af14c6b..189fcfc4 100644
--- a/lib/dvb/epgcache.cpp
+++ b/lib/dvb/epgcache.cpp
@@ -1446,25 +1446,28 @@ PyObject *handleEvent(ePtr<eServiceEvent> &ptr, PyObject *dest_list, char* argst
return 0;
}
-// here we get a list with tuples
-// first tuple entry is the servicereference
-// the second is the type of query (0 = time, 1 = event_id)
-// the third
-// when type is eventid it is the event_id
-// when type is time then it is the start_time ( 0 for now_time )
-// the fourth is the end_time .. ( optional )
-
-/* argv is a python string
- I = Event Id
- B = Event Begin Time
- D = Event Duration
- T = Event Title
- S = Event Short Description
- E = Event Extended Description
- C = Current Time
- R = Service Reference
- N = Service Name
-*/
+// here we get a python list
+// the first entry in the list is a python string to specify the format of the returned tuples (in a list)
+// I = Event Id
+// B = Event Begin Time
+// D = Event Duration
+// T = Event Title
+// S = Event Short Description
+// E = Event Extended Description
+// C = Current Time
+// R = Service Reference
+// N = Service Name
+// then for each service follows a tuple
+// first tuple entry is the servicereference (as string... use the ref.toString() function)
+// the second is the type of query
+// 2 = event_id
+// -1 = event before given start_time
+// 0 = event intersects given start_time
+// +1 = event after given start_time
+// the third
+// when type is eventid it is the event_id
+// when type is time then it is the start_time ( 0 for now_time )
+// the fourth is the end_time .. ( optional .. for query all events in time range)
PyObject *eEPGCache::lookupEvent(PyObject *list, PyObject *convertFunc)
{