Ticket #1425: mythtv-no_grabber.patch

File mythtv-no_grabber.patch, 2.1 KB (added by sphery <mtdean@…>, 18 years ago)
  • libs/libmythtv/videosource.h

     
    105105    UseEIT *useeit;
    106106};
    107107
     108class NoGrabber_config: public VerticalConfigurationGroup
     109{
     110public:
     111    NoGrabber_config(const VideoSource& _parent);
     112
     113    virtual void save();
     114    virtual void save(QString) { save(); }
     115
     116protected:
     117    UseEIT *useeit;
     118};
     119
    108120class XMLTVConfig: public VerticalConfigurationGroup,
    109121                   public TriggeredConfigurationGroup {
    110122public:
  • libs/libmythtv/videosource.cpp

     
    342342    useeit->save();
    343343}
    344344
     345NoGrabber_config::NoGrabber_config(const VideoSource& _parent)
     346{
     347    setUseLabel(false);
     348    setUseFrame(false);
     349
     350    useeit = new UseEIT(_parent);
     351    useeit->setValue(false);
     352    useeit->setVisible(false);
     353    addChild(useeit);
     354}
     355
     356void NoGrabber_config::save()
     357{
     358    useeit->setValue(false);
     359    useeit->save();
     360}
     361
    345362XMLTVConfig::XMLTVConfig(const VideoSource& parent)
    346363{
    347364    setUseLabel(false);
     
    414431
    415432    addTarget("tv_grab_cz", new XMLTV_generic_config(parent, "tv_grab_cz"));
    416433    grabber->addSelection("Czech Republic", "tv_grab_cz");
     434
     435    addTarget("none", new NoGrabber_config(parent));
     436    grabber->addSelection("No grabber", "none");
    417437}
    418438
    419439VideoSource::VideoSource()
  • programs/mythfilldatabase/filldata.cpp

     
    31363136                }
    31373137            }
    31383138        }
     3139        else if (xmltv_grabber == "none")
     3140        {
     3141            VERBOSE(VB_IMPORTANT,
     3142                    "Source configured with no grabber. Nothing to do.");
     3143        }
    31393144        else
    31403145        {
    31413146            VERBOSE(VB_IMPORTANT,