mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
rc_lock: rework class; switch to singleton; add icon; vfd-support
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2eb0aed5db
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-01-20 (Wed, 20 Jan 2016)
Origin message was:
------------------
- rc_lock: rework class; switch to singleton; add icon; vfd-support
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -498,14 +498,15 @@ void CControlAPI::RCCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (!(hh->ParamList.empty()))
|
||||
{
|
||||
bool locked = CRCLock::getInstance()->isLocked();
|
||||
|
||||
if (hh->ParamList["1"] == "lock"){ // lock remote control
|
||||
if(!CRCLock::locked)
|
||||
if (!locked)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::LOCK_RC, CEventServer::INITID_HTTPD);
|
||||
}
|
||||
else if (hh->ParamList["1"] == "unlock"){// unlock remote control
|
||||
if(CRCLock::locked)
|
||||
if (locked)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::UNLOCK_RC, CEventServer::INITID_HTTPD);
|
||||
|
||||
}
|
||||
else{
|
||||
hh->SendError();
|
||||
|
Reference in New Issue
Block a user