Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index cda9be2..5b674f8 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -15,33 +15,36 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
15 | } | 15 | } |
16 | 16 | ||
17 | XineControl::~XineControl() { | 17 | XineControl::~XineControl() { |
18 | delete libXine; | 18 | delete libXine; |
19 | } | 19 | } |
20 | 20 | ||
21 | void XineControl::play( const QString& fileName ) { | 21 | void XineControl::play( const QString& fileName ) { |
22 | libXine->play( fileName ); | 22 | libXine->play( fileName ); |
23 | mediaPlayerState->setPlaying( true ); | 23 | mediaPlayerState->setPlaying( true ); |
24 | // default to audio view until we know how to handle video | 24 | // default to audio view until we know how to handle video |
25 | mediaPlayerState->setView('a'); | 25 | mediaPlayerState->setView('a'); |
26 | // determines of slider is shown | 26 | // determines of slider is shown |
27 | mediaPlayerState->isStreaming = false; | 27 | // mediaPlayerState->setIsStreaming( false ); |
28 | // hier dann schaun welcher view | 28 | // hier dann schaun welcher view |
29 | } | 29 | } |
30 | 30 | ||
31 | void XineControl::stop( bool isSet ) { | 31 | void XineControl::stop( bool isSet ) { |
32 | if ( isSet) { | 32 | if ( !isSet) { |
33 | libXine->stop(); | 33 | libXine->stop(); |
34 | } | 34 | mediaPlayerState->setNext(); |
35 | // mediaPlayerState->setPlaying( false ); | 35 | // mediaPlayerState->setPlaying( false ); |
36 | } else { | ||
37 | // play again | ||
38 | } | ||
36 | } | 39 | } |
37 | 40 | ||
38 | void XineControl::pause( bool isSet) { | 41 | void XineControl::pause( bool isSet) { |
39 | 42 | ||
40 | libXine->pause(); | 43 | libXine->pause(); |
41 | } | 44 | } |
42 | 45 | ||
43 | int XineControl::currentTime() { | 46 | int XineControl::currentTime() { |
44 | // todo: jede sekunde überprüfen | 47 | // todo: jede sekunde überprüfen |
45 | m_currentTime = libXine->currentTime(); | 48 | m_currentTime = libXine->currentTime(); |
46 | return m_currentTime; | 49 | return m_currentTime; |
47 | } | 50 | } |