New commits:
commit 358ab644c57f5fab3d6597203799999e79f1b724
Author: Littlesat <Littlesat99@...>
Date: Thu May 1 18:07:26 2014 +0200
Prepare capebility to get isCrypted status in servicelist
Commit diffs:
commit 358ab644c57f5fab3d6597203799999e79f1b724
Author: Littlesat <Littlesat99@...>
Date: Thu May 1 18:07:26 2014 +0200
Prepare capebility to get isCrypted status in servicelist
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp
index 8afcc26..bacccfe 100644
--- a/lib/dvb/db.cpp
+++ b/lib/dvb/db.cpp
@@ -168,6 +168,11 @@ RESULT eDVBService::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &
return eEPGCache::getInstance()->lookupEventTime(ref, start_time, ptr);
}
+bool eDVBService::isCrypted(const eServiceReference &ref)
+{
+ return m_ca.size() > 0;
+}
+
int eDVBService::isPlayable(const eServiceReference &ref, const eServiceReference &ignore, bool simulate)
{
ePtr<eDVBResourceManager> res_mgr;
diff --git a/lib/dvb/idvb.h b/lib/dvb/idvb.h
index 5777fb0..7698526 100644
--- a/lib/dvb/idvb.h
+++ b/lib/dvb/idvb.h
@@ -303,6 +303,7 @@ public:
// iStaticServiceInformation
RESULT getName(const eServiceReference &ref, std::string &name);
RESULT getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &ptr, time_t start_time);
+ bool isCrypted(const eServiceReference &ref);
int isPlayable(const eServiceReference &ref, const eServiceReference &ignore, bool simulate=false);
ePtr<iDVBTransponderData> getTransponderData(const eServiceReference &ref);
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index 71eee58..63e530f 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -270,6 +270,7 @@ public:
virtual ePtr<iServiceInfoContainer> getInfoObject(int w);
virtual ePtr<iDVBTransponderData> getTransponderData(const eServiceReference &ref);
virtual long long getFileSize(const eServiceReference &ref);
+ virtual bool isCrypted(const eServiceReference &ref);
virtual int setInfo(const eServiceReference &ref, int w, int v);
virtual int setInfoString(const eServiceReference &ref, int w, const char *v);
diff --git a/lib/service/service.cpp b/lib/service/service.cpp
index b8382c0..9f88e45 100644
--- a/lib/service/service.cpp
+++ b/lib/service/service.cpp
@@ -297,6 +297,11 @@ long long iStaticServiceInformation::getFileSize(const eServiceReference &ref)
return 0;
}
+bool iStaticServiceInformation::isCrypted(const eServiceReference &ref)
+{
+ return 0;
+}
+
int iStaticServiceInformation::setInfo(const eServiceReference &ref, int w, int v)
{
return -1;
_______________________________________________
Openpli-git-commits mailing list
Openpli-git-commits@...
Openpli-git-commits Info Page