mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
*neutrino record: show user messages during starting or stopping recordings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1724 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -702,6 +702,9 @@ int CRecordManager::GetRecordMode()
|
|||||||
|
|
||||||
bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, bool timeshift)
|
bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, bool timeshift)
|
||||||
{
|
{
|
||||||
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, "Start recording...please wait!");
|
||||||
|
hintBox.paint();
|
||||||
|
|
||||||
CTimerd::RecordingInfo eventinfo;
|
CTimerd::RecordingInfo eventinfo;
|
||||||
CEPGData epgData;
|
CEPGData epgData;
|
||||||
|
|
||||||
@@ -721,6 +724,8 @@ bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, boo
|
|||||||
eventinfo.apids = TIMERD_APIDS_CONF;
|
eventinfo.apids = TIMERD_APIDS_CONF;
|
||||||
eventinfo.recordingDir[0] = 0;
|
eventinfo.recordingDir[0] = 0;
|
||||||
|
|
||||||
|
hintBox.hide();
|
||||||
|
|
||||||
return Record(&eventinfo, dir, timeshift);
|
return Record(&eventinfo, dir, timeshift);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -740,6 +745,9 @@ bool CRecordManager::Record(const CTimerd::RecordingInfo * const eventinfo, cons
|
|||||||
if(!CheckRecording(eventinfo))
|
if(!CheckRecording(eventinfo))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, "Start recording...please wait!");
|
||||||
|
hintBox.paint();
|
||||||
|
|
||||||
#if 1 // FIXME test
|
#if 1 // FIXME test
|
||||||
StopSectionsd = false;
|
StopSectionsd = false;
|
||||||
if(recmap.size())
|
if(recmap.size())
|
||||||
@@ -797,6 +805,7 @@ bool CRecordManager::Record(const CTimerd::RecordingInfo * const eventinfo, cons
|
|||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|
||||||
if (error_msg == RECORD_OK) {
|
if (error_msg == RECORD_OK) {
|
||||||
|
hintBox.hide();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if(!timeshift) {
|
else if(!timeshift) {
|
||||||
@@ -805,12 +814,15 @@ bool CRecordManager::Record(const CTimerd::RecordingInfo * const eventinfo, cons
|
|||||||
|
|
||||||
printf("[recordmanager] %s: error code: %d\n", __FUNCTION__, error_msg);
|
printf("[recordmanager] %s: error code: %d\n", __FUNCTION__, error_msg);
|
||||||
//FIXME: Use better error message
|
//FIXME: Use better error message
|
||||||
|
hintBox.hide();
|
||||||
DisplayErrorMessage(g_Locale->getText(
|
DisplayErrorMessage(g_Locale->getText(
|
||||||
error_msg == RECORD_BUSY ? LOCALE_STREAMING_BUSY :
|
error_msg == RECORD_BUSY ? LOCALE_STREAMING_BUSY :
|
||||||
error_msg == RECORD_INVALID_DIRECTORY ? LOCALE_STREAMING_DIR_NOT_WRITABLE :
|
error_msg == RECORD_INVALID_DIRECTORY ? LOCALE_STREAMING_DIR_NOT_WRITABLE :
|
||||||
LOCALE_STREAMING_WRITE_ERROR )); // UTF-8
|
LOCALE_STREAMING_WRITE_ERROR )); // UTF-8
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hintBox.hide();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -933,8 +945,12 @@ bool CRecordManager::SameTransponder(const t_channel_id channel_id)
|
|||||||
return same;
|
return same;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CRecordManager::Stop(const t_channel_id channel_id)
|
bool CRecordManager::Stop(const t_channel_id channel_id)
|
||||||
{
|
{
|
||||||
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, "Stopp record...please wait!");
|
||||||
|
hintBox.paint();
|
||||||
|
|
||||||
printf("%s: %llx\n", __FUNCTION__, channel_id);
|
printf("%s: %llx\n", __FUNCTION__, channel_id);
|
||||||
|
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
@@ -956,12 +972,18 @@ bool CRecordManager::Stop(const t_channel_id channel_id)
|
|||||||
|
|
||||||
StopPostProcess();
|
StopPostProcess();
|
||||||
|
|
||||||
|
hintBox.hide();
|
||||||
|
|
||||||
return (inst != NULL);
|
return (inst != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CRecordManager::Stop(const CTimerd::RecordingStopInfo * recinfo)
|
bool CRecordManager::Stop(const CTimerd::RecordingStopInfo * recinfo)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, "Stopp record...please wait!");
|
||||||
|
hintBox.paint();
|
||||||
|
|
||||||
printf("%s: eventID %d channel_id %llx\n", __FUNCTION__, recinfo->eventID, recinfo->channel_id);
|
printf("%s: eventID %d channel_id %llx\n", __FUNCTION__, recinfo->eventID, recinfo->channel_id);
|
||||||
|
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
@@ -996,6 +1018,8 @@ bool CRecordManager::Stop(const CTimerd::RecordingStopInfo * recinfo)
|
|||||||
|
|
||||||
StopPostProcess();
|
StopPostProcess();
|
||||||
|
|
||||||
|
hintBox.hide();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user