summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp14
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
@@ -10,6 +10,7 @@ XineControl::XineControl( QObject *parent, const char *name )
10 10
11 connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); 11 connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) );
12 connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); 12 connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) );
13 connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) );
13 14
14} 15}
15 16
@@ -20,15 +21,22 @@ XineControl::~XineControl() {
20void XineControl::play( const QString& fileName ) { 21void XineControl::play( const QString& fileName ) {
21 libXine->play( fileName ); 22 libXine->play( fileName );
22 mediaPlayerState->setPlaying( true ); 23 mediaPlayerState->setPlaying( true );
24 // default to audio view until we know how to handle video
25 mediaPlayerState->setView('a');
26 // determines of slider is shown
27 mediaPlayerState->isStreaming = false;
23 // hier dann schaun welcher view 28 // hier dann schaun welcher view
24} 29}
25 30
26void XineControl::stop() { 31void XineControl::stop( bool isSet ) {
32 if ( isSet) {
27 libXine->stop(); 33 libXine->stop();
28 mediaPlayerState->setPlaying( false );
29} 34}
35 // mediaPlayerState->setPlaying( false );
36}
37
38void XineControl::pause( bool isSet) {
30 39
31void XineControl::pause( bool ) {
32 libXine->pause(); 40 libXine->pause();
33} 41}
34 42