{
Video::getInstance()->signalOn();
Led::getInstance()->on();
+ Remote::getInstance()->changePowerState(true);
isStandby = 0;
logger->unsetExternLogger();
VDR::getInstance()->disconnect();
Led::getInstance()->off();
+ Remote::getInstance()->changePowerState(false);
isStandby = 1;
Sleeptimer::getInstance()->shutdown();
#ifdef WIN32
void EnterLearnMode(UCHAR command);
void ResetToDefault();
+ virtual void changePowerState(bool poweron) {}; //informs the remote control, that about vomp's power state, this is important e.g. for cec
+
const static ULONG NOLEARNMODE = 256;
// Not buttons
const static UCHAR NA_LEARN = 101;
return rt;
}
+void RemoteLinux::changePowerState(bool poweron){
+ if (cec_adap) {
+ if (poweron) {
+ Log::getInstance()->log("Remote", Log::DEBUG, "CEC set active source" );
+ cec_adap->SetActiveSource();
+ } else {
+ Log::getInstance()->log("Remote", Log::DEBUG, "CEC set inactive view" );
+ cec_adap->SetInactiveView();
+ }
+ }
+}
+
int RemoteLinux::cecLogMessage(void *param, const cec_log_message &message)
{
const char*HardcodedTranslateStr(UCHAR command);
char* HCWDesc(ULLONG hcw);
+ void changePowerState(bool poweron);
+
bool loadOptionsfromServer(VDR* vdr);
bool saveOptionstoServer();
bool addOptionsToPanes(int panenumber,Options *options,WOptionPane* pane);