aboutsummaryrefslogtreecommitdiff
path: root/lib/service/iservice.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-24 00:29:54 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-24 00:29:54 +0000
commit5ff227c657e02ebe2bc719faf4bd2231a04850c8 (patch)
tree8e7361161ee08db583147d47e2662b94219ed324 /lib/service/iservice.h
parent3e9bd06034d9656d4346225e90e68a65327a4aa0 (diff)
downloadenigma2-5ff227c657e02ebe2bc719faf4bd2231a04850c8.tar.gz
enigma2-5ff227c657e02ebe2bc719faf4bd2231a04850c8.zip
add ability to copy providers or all services from satellites to favourites (this creates a new bouquet)
add ability to remove a complete bouquet both are just working with enabled multi bouquet mode
Diffstat (limited to 'lib/service/iservice.h')
-rw-r--r--lib/service/iservice.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index 2b42510d..1f55fe49 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -2,6 +2,7 @@
#define __lib_dvb_iservice_h
#include <lib/python/swig.h>
+#include <lib/python/python.h>
#include <lib/base/object.h>
#include <string>
#include <connection.h>
@@ -166,6 +167,8 @@ public:
SWIG_ALLOW_OUTPUT_SIMPLE(eServiceReference);
+extern PyObject *New_eServiceReference(const eServiceReference &ref); // defined in enigma_python.i
+
typedef long long pts_t;
/* the reason we have the servicereference as additional argument is
@@ -442,6 +445,8 @@ public:
/* moves a service in a list, only if list suppports a specific sort method. */
/* pos is the new, absolute position from 0..size-1 */
virtual RESULT moveService(eServiceReference &ref, int pos)=0;
+ /* set name of list, for bouquets this is the visible bouquet name */
+ virtual RESULT setListName(const std::string &name)=0;
};
TEMPLATE_TYPEDEF(ePtr<iMutableServiceList>, iMutableServiceListPtr);
@@ -454,8 +459,9 @@ class iListableService: public iObject
#endif
public:
/* legacy interface: get a list */
- virtual RESULT getContent(std::list<eServiceReference> &list)=0;
-
+ virtual RESULT getContent(std::list<eServiceReference> &list, bool sorted=false)=0;
+ virtual RESULT getContent(PyObject *list, bool sorted=false)=0;
+
/* new, shiny interface: streaming. */
virtual SWIG_VOID(RESULT) getNext(eServiceReference &SWIG_OUTPUT)=0;