emit artChanged( NULL );
emit infoChanged( NULL );
emit metaChanged( (input_item_t *)NULL );
-#if 0
+
emit encryptionChanged( false );
-#endif
}
/* Convert the event from the callbacks in actions */
case RecordingEvent_Type:
UpdateRecord();
break;
+ case ProgramChanged_Type:
+ UpdateProgramEvent();
+ break;
default:
msg_Warn( p_intf, "This shouldn't happen: %i", i_type );
assert(0);
case INPUT_EVENT_PROGRAM:
/* This is for PID changes */
- /* event = new IMEvent( ProgramChanged_Type, 0 );
- break; */
+ event = new IMEvent( ProgramChanged_Type, 0 );
+ break;
+
case INPUT_EVENT_SIGNAL:
/* This is for capture-card signals */
/* event = new IMEvent( SignalChanged_Type, 0 );
}
}
+void InputManager::UpdateProgramEvent()
+{
+ if( hasInput() )
+ {
+ bool b_scrambled = var_GetBool( p_input, "program-scrambled" );
+ emit encryptionChanged( b_scrambled );
+ }
+}
+
/* User update of the slider */
void InputManager::sliderUpdate( float new_pos )
{
CachingEvent_Type,
BookmarksChanged_Type,
RecordingEvent_Type,
-/* ProgramChanged_Type,
- SignalChanged_Type, */
+ ProgramChanged_Type,
+/* SignalChanged_Type, */
FullscreenControlToggle_Type = QEvent::User + IMEventType + 20,
FullscreenControlShow_Type,
void UpdateStats();
void UpdateCaching();
void UpdateRecord();
-
+ void UpdateProgramEvent();
public slots:
void setInput( input_thread_t * ); ///< Our controlled input changed
void synchroChanged();
void bookmarksChanged();
void cachingChanged( float );
-#if 0
+ /// Program Event changes
void encryptionChanged( bool );
-#endif
};
class MainInputManager : public QObject
playlistVisible = false;
input_name = "";
fullscreenControls = NULL;
-#if 0
cryptedLabel = NULL;
-#endif
/* Ask for privacy */
askForPrivacy();
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() );
-#if 0
+
CONNECT( THEMIM->getIM(), encryptionChanged( bool ) , this, showCryptedLabel( bool ) );
-#endif
}
-#if 0
void MainInterface::showCryptedLabel( bool )
{
if( cryptedLabel == NULL )
cryptedLabel->show();
}
-#endif
inline void MainInterface::initSystray()
{
/* Status Bar */
QLabel *nameLabel;
-#if 0
QLabel *cryptedLabel;
-#endif
virtual void customEvent( QEvent *);
virtual void keyPressEvent( QKeyEvent *);
void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int );
-#if 0
void showCryptedLabel( bool );
-#endif
signals:
void askReleaseVideo( );
void askVideoToResize( unsigned int, unsigned int );