Now epg-content should update automaticly when user changes channel etc.
layout->addWidget( splitter );
CONNECT( epg, itemSelectionChanged( EPGEvent *), this, showEvent( EPGEvent *) );
+ CONNECT( THEMIM->getIM(), epgChanged(), this, updateInfos() );
QPushButton *update = new QPushButton( qtr( "Update" ) ); //Temporary to test
layout->addWidget( update, 0, Qt::AlignRight );
case ProgramChanged_Type:
UpdateProgramEvent();
break;
+ case EPGEvent_Type:
+ UpdateEPG();
+ break;
default:
msg_Warn( p_intf, "This shouldn't happen: %i", i_type );
assert(0);
event = new IMEvent( ProgramChanged_Type );
break;
+ case INPUT_EVENT_ITEM_EPG:
+ /* EPG data changed */
+ event = new IMEvent( EPGEvent_Type );
+ break;
+
case INPUT_EVENT_SIGNAL:
/* This is for capture-card signals */
/* event = new IMEvent( SignalChanged_Type );
}
}
+void InputManager::UpdateEPG()
+{
+ if( hasInput() )
+ {
+ emit epgChanged();
+ }
+}
+
void InputManager::UpdateVout()
{
if( hasInput() )
LoopChanged_Type,
RepeatChanged_Type,
LeafToParent_Type,
+ EPGEvent_Type,
/* SignalChanged_Type, */
FullscreenControlToggle_Type = QEvent::User + IMEventType + 20,
void UpdateCaching();
void UpdateRecord();
void UpdateProgramEvent();
+ void UpdateEPG();
public slots:
void setInput( input_thread_t * ); ///< Our controlled input changed
void cachingChanged( float );
/// Program Event changes
void encryptionChanged( bool );
+ void epgChanged();
};
class MainInputManager : public QObject