diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-01-14 17:59:32 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-01-14 17:59:32 +0000 |
| commit | cc9862b55b147eb78581813ba70d574940ac103d (patch) | |
| tree | 895468d5149bb56e7f751c98ea6c42d168736e5c /lib/components | |
| parent | 742956672b795d0ffa44575f9a8e0255b768915c (diff) | |
| download | enigma2-cc9862b55b147eb78581813ba70d574940ac103d.tar.gz enigma2-cc9862b55b147eb78581813ba70d574940ac103d.zip | |
display last 7 services during scan
Diffstat (limited to 'lib/components')
| -rw-r--r-- | lib/components/scan.cpp | 13 | ||||
| -rw-r--r-- | lib/components/scan.h | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index bfbb02da..c21e8f4b 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -33,6 +33,12 @@ void eComponentScan::scanEvent(int evt) } } + if (evt == eDVBScan::evtNewService) + { + newService(); + return; + } + if (evt == eDVBScan::evtFail) { eDebug("scan failed."); @@ -137,3 +143,10 @@ int eComponentScan::getError() { return m_failed; } + +void eComponentScan::getLastServiceName(std::string &string) +{ + if (!m_scan) + return; + m_scan->getLastServiceName(string); +} diff --git a/lib/components/scan.h b/lib/components/scan.h index eb18f104..9ce6539f 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -23,6 +23,7 @@ public: ~eComponentScan(); PSignal0<void> statusChanged; + PSignal0<void> newService; /* progress between 0 and 100 */ int getProgress(); @@ -33,6 +34,9 @@ public: /* true when done or error */ int isDone(); + /* get last added service */ + void getLastServiceName(std::string &SWIG_OUTPUT); + int getError(); void clear(); |
