diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-02-25 01:46:44 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-02-25 01:46:44 +0000 |
| commit | 1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b (patch) | |
| tree | 5bd4dbac6538cf499f641849d26193958b48a187 /lib/components | |
| parent | e677ac4a7bf81391877c909a703e5918ce4a511b (diff) | |
| download | enigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.tar.gz enigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.zip | |
- work on actions
- changed time when screens are acutally constructed
- added service name (not working atm) and event info (now&next)
Diffstat (limited to 'lib/components')
| -rw-r--r-- | lib/components/scan.cpp | 26 | ||||
| -rw-r--r-- | lib/components/scan.h | 2 |
2 files changed, 17 insertions, 11 deletions
diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index 4d8d8b78..8fb60b58 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -20,23 +20,29 @@ void eComponentScan::scanEvent(int evt) if ((err = eDVBResourceManager::getInstance(res)) != 0) { eDebug("no resource manager"); - return; - } - if ((err = res->getChannelList(db)) != 0) + m_failed = 2; + } else if ((err = res->getChannelList(db)) != 0) { + m_failed = 3; eDebug("no channel list"); - return; + } else + { + m_scan->insertInto(db); + eDebug("scan done!"); } - - m_scan->insertInto(db); - - eDebug("scan done!"); + } + + if (evt == eDVBScan::evtFail) + { + eDebug("scan failed."); + m_failed = 1; + m_done = 1; } statusChanged(); } -eComponentScan::eComponentScan(): m_done(-1) +eComponentScan::eComponentScan(): m_done(-1), m_failed(0) { } @@ -77,8 +83,8 @@ int eComponentScan::start() list.push_back(fe); m_scan = new eDVBScan(channel); - m_scan->start(list); m_scan->connectEvent(slot(*this, &eComponentScan::scanEvent), m_scan_event_connection); + m_scan->start(list); return 0; } diff --git a/lib/components/scan.h b/lib/components/scan.h index afa68689..073919c7 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -13,7 +13,7 @@ private: ePtr<eConnection> m_scan_event_connection; ePtr<eDVBScan> m_scan; - int m_done; + int m_done, m_failed; public: eComponentScan(); ~eComponentScan(); |
