driver/record.cpp: fix get timeshift file name;

adapt menu for GetRecordMode() mask;
comment unused code


Origin commit data
------------------
Branch: ni/coolstream
Commit: 870f2e6b7a
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-08-07 (Tue, 07 Aug 2012)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-08-07 14:44:25 +04:00
parent 355b9858e9
commit d989184e99
2 changed files with 21 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
CRecordInstance * FindInstance(t_channel_id);
CRecordInstance * FindInstanceID(int recid);
CRecordInstance * FindTimeshift();
void SetTimeshiftMode(CRecordInstance * inst=NULL, int mode=TSHIFT_MODE_OFF);
//void SetTimeshiftMode(CRecordInstance * inst=NULL, int mode=TSHIFT_MODE_OFF);
public:
enum record_modes_t
@@ -191,7 +191,7 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
bool StopAutoRecord(bool lock = true);
MI_MOVIE_INFO * GetMovieInfo(const t_channel_id channel_id, bool timeshift = true);
const std::string GetFileName(const t_channel_id channel_id);
const std::string GetFileName(const t_channel_id channel_id, bool timeshift = true);
bool RunStartScript(void);
bool RunStopScript(void);
@@ -211,12 +211,12 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
int handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data);
// mimic old behavior for start/stop menu option chooser, still actual ?
int GetRecordCount() { return recmap.size(); };
bool IsTimeshift(t_channel_id channel_id=0);
void StartTimeshift();
int GetRecordMode(const t_channel_id channel_id=0);
bool IsFileRecord(std::string file);
// old code
#if 0
bool IsTimeshift(t_channel_id channel_id=0);
bool MountDirectory(const char *recordingDir);
bool ChooseRecDir(std::string &dir);
int recordingstatus;