remove obsolete kodi code for grabbers (#372)

This commit is contained in:
redPanther 2017-01-20 23:43:22 +01:00 committed by brindosch
parent c85b2de13d
commit 05ee316c1d
4 changed files with 3 additions and 41 deletions

View File

@ -42,11 +42,7 @@ public slots:
///
virtual void action();
void setCropping(const unsigned cropLeft, const unsigned cropRight,
const unsigned cropTop, const unsigned cropBottom);
virtual void kodiPlay();
virtual void kodiPause();
void setCropping(const unsigned cropLeft, const unsigned cropRight, const unsigned cropTop, const unsigned cropBottom);
///
/// Set the video mode (2D/3D)

View File

@ -48,10 +48,6 @@ signals:
protected:
virtual void kodiPlay();
virtual void kodiOff();
virtual void kodiPause();
void setColors(const std::vector<ColorRgb> &ledColors, const int timeout_ms);
std::string _grabberName;

View File

@ -43,18 +43,6 @@ void DispmanxWrapper::action()
setColors(_ledColors, _timeout_ms);
}
void DispmanxWrapper::kodiPlay()
{
_grabber->setFlags(0);
GrabberWrapper::kodiPlay();
}
void DispmanxWrapper::kodiPause()
{
_grabber->setFlags(0);
GrabberWrapper::kodiPause();
}
void DispmanxWrapper::setVideoMode(const VideoMode mode)
{

View File

@ -80,39 +80,21 @@ void GrabberWrapper::componentStateChanged(const hyperion::Components component,
}
}
void GrabberWrapper::kodiPlay()
{
start();
}
void GrabberWrapper::kodiPause()
{
start();
}
void GrabberWrapper::kodiOff()
{
stop();
}
void GrabberWrapper::setGrabbingMode(const GrabbingMode mode)
{
switch (mode)
{
case GRABBINGMODE_VIDEO:
case GRABBINGMODE_PAUSE:
kodiPause();
break;
case GRABBINGMODE_AUDIO:
case GRABBINGMODE_PHOTO:
case GRABBINGMODE_MENU:
case GRABBINGMODE_SCREENSAVER:
case GRABBINGMODE_INVALID:
kodiPlay();
start();
break;
case GRABBINGMODE_OFF:
kodiOff();
stop();
break;
}
}