aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicedvb.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-13 15:30:08 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-13 15:30:08 +0000
commit2e2cf81de863a180f7d27dca89e5122e1eb0acaa (patch)
treefd265abbe20eb76d434682a95df9e0f4aea52285 /lib/service/servicedvb.cpp
parentab92ba5e6b439cb9a0aabc8c9330ec7d4ad9b301 (diff)
downloadenigma2-2e2cf81de863a180f7d27dca89e5122e1eb0acaa.tar.gz
enigma2-2e2cf81de863a180f7d27dca89e5122e1eb0acaa.zip
add iMutableServiceList
Diffstat (limited to 'lib/service/servicedvb.cpp')
-rw-r--r--lib/service/servicedvb.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 76b0089c..94833f44 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -270,6 +270,50 @@ int eDVBServiceList::compareLessEqual(const eServiceReference &a, const eService
return m_query->compareLessEqual((const eServiceReferenceDVB&)a, (const eServiceReferenceDVB&)b);
}
+RESULT eDVBServiceList::startEdit(ePtr<iMutableServiceList> &res)
+{
+ if (m_parent.flags & eServiceReference::flagDirectory) // bouquet
+ {
+ ePtr<iDVBChannelList> db;
+ ePtr<eDVBResourceManager> resm;
+
+ if (eDVBResourceManager::getInstance(resm) || resm->getChannelList(db))
+ return -1;
+
+ // FIXME!
+ if (db->getBouquet(m_parent, (const eBouquet*&)m_bouquet) != 0)
+ return -1;
+
+ res = this;
+
+ return 0;
+ }
+ res = 0;
+ return -1;
+}
+
+RESULT eDVBServiceList::addService(eServiceReference &ref)
+{
+ ASSERT(m_bouquet);
+// return m_bouquet->addService(ref);
+ return -1;
+}
+
+RESULT eDVBServiceList::removeService(eServiceReference &ref)
+{
+ ASSERT(m_bouquet);
+// return m_bouquet->removeService(ref);
+ return -1;
+}
+
+RESULT eDVBServiceList::moveService(eServiceReference &ref, int pos)
+{
+ ASSERT(m_bouquet);
+
+// return m_bouquet->moveService(ref, pos);
+ return -1;
+}
+
RESULT eServiceFactoryDVB::play(const eServiceReference &ref, ePtr<iPlayableService> &ptr)
{
ePtr<eDVBService> service;