This needs the core event, of course, in order to work... (not yet done, and probably for later).
emit statusChanged( END_S );
emit teletextPossible( false );
+ emit encryptionChanged( false );
emit AtoBchanged( false, false );
emit voutChanged( false );
emit voutListChanged( NULL, 0 );
void AtoBchanged( bool, bool );
/// Vout
void voutChanged( bool );
+ void voutListChanged( vout_thread_t **pp_vout, int i_vout );
+ /// Other
void synchroChanged();
void bookmarksChanged();
void cachingChanged( float );
- void voutListChanged( vout_thread_t **pp_vout, int i_vout );
+ void encryptionChanged( bool );
};
class MainInputManager : public QObject
playlistVisible = false;
input_name = "";
fullscreenControls = NULL;
+ cryptedLabel = NULL;
/* Ask for privacy */
askForPrivacy();
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() );
+
+ CONNECT( THEMIM->getIM(), encryptionChanged( bool ) , this, showCryptedLabel( bool ) );
+}
+
+void MainInterface::showCryptedLabel( bool )
+{
+ if( cryptedLabel == NULL )
+ {
+ cryptedLabel = new QLabel;
+ cryptedLabel->setPixmap( QPixmap( ":/eject" ) );
+ statusBar()->addWidget( cryptedLabel );
+ }
+
+ cryptedLabel->show();
}
inline void MainInterface::initSystray()
/* Status Bar */
QLabel *nameLabel;
+ QLabel *cryptedLabel;
virtual void customEvent( QEvent *);
virtual void keyPressEvent( QKeyEvent *);
void handleSystrayClick( QSystemTrayIcon::ActivationReason );
void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int );
+
+ void showCryptedLabel( bool );
signals:
void askReleaseVideo( );
void askVideoToResize( unsigned int, unsigned int );