mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 13:18:27 +02:00
Merge branch 'uncool/dvbsi++' commit '9d1444a8df5'
...needs buildfixing...
Conflicts:
data/Makefile.am
src/driver/volume.cpp
src/gui/infoviewer.cpp
src/gui/miscsettings_menu.cpp
src/gui/movieplayer.cpp
src/gui/scan.cpp
src/gui/widget/buttons.cpp
src/gui/widget/menue.cpp
src/gui/widget/stringinput.cpp
src/neutrino.cpp
src/nhttpd/tuxboxapi/coolstream/controlapi.cpp
src/system/setting_helpers.cpp
src/zapit/src/capmt.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e23ac7223
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-11-03 (Sat, 03 Nov 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#ifdef SCREENSHOT
|
||||
#include <driver/screenshot.h>
|
||||
#endif
|
||||
#include "gui/rc_lock.h"
|
||||
|
||||
// yhttpd
|
||||
#include "yhttpd.h"
|
||||
#include "ytypes_globals.h"
|
||||
@@ -429,12 +431,14 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (hh->ParamList["1"] == "on") // standby mode on
|
||||
{
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_ON, CEventServer::INITID_HTTPD);
|
||||
if(CNeutrinoApp::getInstance()->getMode() != 4)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_ON, CEventServer::INITID_HTTPD);
|
||||
hh->SendOk();
|
||||
}
|
||||
else if (hh->ParamList["1"] == "off")// standby mode off
|
||||
{
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD);
|
||||
if(CNeutrinoApp::getInstance()->getMode() == 4)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD);
|
||||
hh->SendOk();
|
||||
}
|
||||
else
|
||||
@@ -452,12 +456,18 @@ void CControlAPI::RCCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (!(hh->ParamList.empty()))
|
||||
{
|
||||
if (hh->ParamList["1"] == "lock") // lock remote control
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::LOCK_RC, CEventServer::INITID_HTTPD);
|
||||
else if (hh->ParamList["1"] == "unlock")// unlock remote control
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::UNLOCK_RC, CEventServer::INITID_HTTPD);
|
||||
else
|
||||
if (hh->ParamList["1"] == "lock"){ // lock remote control
|
||||
if(!CRCLock::locked)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::LOCK_RC, CEventServer::INITID_HTTPD);
|
||||
}
|
||||
else if (hh->ParamList["1"] == "unlock"){// unlock remote control
|
||||
if(CRCLock::locked)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::UNLOCK_RC, CEventServer::INITID_HTTPD);
|
||||
|
||||
}
|
||||
else{
|
||||
hh->SendError();
|
||||
}
|
||||
}
|
||||
hh->SendOk();
|
||||
}
|
||||
@@ -1478,15 +1488,19 @@ void CControlAPI::ZaptoCGI(CyhookHandler *hh)
|
||||
SendAllCurrentVAPid(hh);
|
||||
else if (hh->ParamList["1"] == "stopplayback")
|
||||
{
|
||||
NeutrinoAPI->Zapit->stopPlayBack();
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(true);
|
||||
if(NeutrinoAPI->Zapit->isPlayBackActive()){
|
||||
NeutrinoAPI->Zapit->stopPlayBack();
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(true);
|
||||
}
|
||||
hh->SendOk();
|
||||
}
|
||||
else if (hh->ParamList["1"] == "startplayback")
|
||||
{
|
||||
NeutrinoAPI->Zapit->startPlayBack();
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(false);
|
||||
dprintf("start playback requested..\n");
|
||||
if(!NeutrinoAPI->Zapit->isPlayBackActive()){
|
||||
NeutrinoAPI->Zapit->startPlayBack();
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(false);
|
||||
dprintf("start playback requested..\n");
|
||||
}
|
||||
hh->SendOk();
|
||||
}
|
||||
else if (hh->ParamList["1"] == "statusplayback")
|
||||
|
Reference in New Issue
Block a user