Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index aaa1a24..cda9be2 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -12,2 +12,3 @@ XineControl::XineControl( QObject *parent, const char *name ) connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); + connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); @@ -22,2 +23,6 @@ void XineControl::play( const QString& fileName ) { mediaPlayerState->setPlaying( true ); + // default to audio view until we know how to handle video + mediaPlayerState->setView('a'); + // determines of slider is shown + mediaPlayerState->isStreaming = false; // hier dann schaun welcher view @@ -25,8 +30,11 @@ void XineControl::play( const QString& fileName ) { -void XineControl::stop() { +void XineControl::stop( bool isSet ) { + if ( isSet) { libXine->stop(); - mediaPlayerState->setPlaying( false ); } + // mediaPlayerState->setPlaying( false ); +} + +void XineControl::pause( bool isSet) { -void XineControl::pause( bool ) { libXine->pause(); |