mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
- infoviewer: when current channel is not recorded and/or timeshifted show gray recording and/or timeshift icon instead of red ones
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1637 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -670,6 +670,19 @@ CRecordInstance * CRecordManager::FindInstance(t_channel_id channel_id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool CRecordManager::IsTimeshift(t_channel_id channel_id)
|
||||
{
|
||||
bool ret;
|
||||
mutex.lock();
|
||||
CRecordInstance * inst = FindInstance(channel_id);
|
||||
mutex.unlock();
|
||||
if(inst && inst->Timeshift())
|
||||
ret = true;
|
||||
else
|
||||
ret = false;
|
||||
return ret;
|
||||
}
|
||||
|
||||
MI_MOVIE_INFO * CRecordManager::GetMovieInfo(t_channel_id channel_id)
|
||||
{
|
||||
//FIXME copy MI_MOVIE_INFO ?
|
||||
|
@@ -192,5 +192,6 @@ class CRecordManager : public CMenuTarget, public CChangeObserver
|
||||
bool doGuiRecord();
|
||||
bool changeNotify(const neutrino_locale_t OptionName, void * /*data*/);
|
||||
int GetRecmapSize() { return recmap.size(); };
|
||||
bool IsTimeshift(t_channel_id channel_id);
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user