fix detection of timeshifted channel

- trigger recording menu on first press of STOP button
- disable recording stop via REC button
- disable menu entry "record current channel" when current channel is already recorded
- disable menu entry "timeshift" when current channel is already recorded or timeshifted
- flag timeshifted channel with prefix "[TS]"

Big thanks to micha-bbg!

For reference: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p133623-anzeige-f%C3%BCr-laufende-aufnahmen/#post133623

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1638 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: a645062f6d
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-08-30 (Tue, 30 Aug 2011)

Origin message was:
------------------
- fix detection of timeshifted channel
- trigger recording menu on first press of STOP button
- disable recording stop via REC button
- disable menu entry "record current channel" when current channel is already recorded
- disable menu entry "timeshift" when current channel is already recorded or timeshifted
- flag timeshifted channel with prefix "[TS]"

Big thanks to micha-bbg!

For reference: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p133623-anzeige-f%C3%BCr-laufende-aufnahmen/#post133623

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1638 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2011-08-30 18:00:37 +00:00
parent 1a96b6b4b0
commit 38378ea206
4 changed files with 109 additions and 70 deletions

View File

@@ -51,6 +51,11 @@
#define FILENAMEBUFFERSIZE 1024
#define RECORD_MAX_COUNT 8
#define TSHIFT_MODE_OFF 0
#define TSHIFT_MODE_TEMPORAER 1
#define TSHIFT_MODE_PERMANET 2
#define TSHIFT_MODE_PAUSE 3
//FIXME
enum record_error_msg_t
{
@@ -114,6 +119,7 @@ class CRecordInstance
void GetRecordString(std::string& str);
const char * GetFileName() { return filename; };
bool Timeshift() { return autoshift; };
int tshift_mode;
};
typedef std::map<t_channel_id, CRecordInstance*> recmap_t;
@@ -147,6 +153,7 @@ class CRecordManager : public CMenuTarget, public CChangeObserver
void StartNextRecording();
void StopPostProcess();
CRecordInstance * FindInstance(t_channel_id);
void SetTimeshiftMode(CRecordInstance * inst=NULL, int mode=TSHIFT_MODE_OFF);
public:
CRecordManager();
@@ -192,6 +199,7 @@ 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);
bool IsTimeshift(t_channel_id channel_id=0);
void StartTimeshift();
};
#endif