[PVR] Feature: Confirm shutdown if PVR backend is not idle.

User story: In case shutdown is requested by the user while PVR is recordig or a  recording will start very soon (and XBMC machine potentially cannot restart fast enough), XBMC refuses to shutdown, but shows a Yes/No dialog to the user explaining that PVR is currently not idle and asking the user to shut down anyway. If user does nothing for 10 secs, the dialog will autoclose and shutdown will be cancelled.

Purpose: This is very useful to prevent accidentally stopped recordings.

BTW: This feature has been discussed from time to time in the forums and there were some (hacky) addons around to implement this, but no clean implementation (which IMO can only be done inXBMC itself.)
 Thanks for the advice, Rainer. Will give this a try the next days (when I'm back home). 

 Viele Grüße
Kai Sommerfeld.

> Am 29.12.2014 um 17:00 schrieb Rainer Hochecker <notifications@github.com>:
> 
> In xbmc/ApplicationMessenger.cpp:
> 
> > @@ -261,6 +261,9 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
> >  
> >      case TMSG_POWERDOWN:
> >        {
> > +        if (!g_PVRManager.CheckShutdown())
> In Application.cpp there ae two places where CBuiltins::Execute is called. If I am no mistaken those calls do either come from action built into the skin or button presses. You could hook in if action.GetName starts with "Powerdown".
> 
> —
> Reply to this email directly or view it on GitHub.
>