Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 3090b08..778cd1e 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp @@ -58,2 +58,8 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { // public stuff + + +bool MediaPlayerState::streaming() { + return isStreaming; +} + bool MediaPlayerState::fullscreen() { @@ -87,2 +93,6 @@ bool MediaPlayerState::playing() { +bool MediaPlayerState::stop() { + return isStoped; +} + long MediaPlayerState::position() { @@ -100,2 +110,10 @@ char MediaPlayerState::view() { // slots +void MediaPlayerState::setIsStreaming( bool b ) { + if ( isStreaming == b ) { + return; + } + isStreaming = b; +} + + void MediaPlayerState::setFullscreen( bool b ) { @@ -154,2 +172,3 @@ void MediaPlayerState::setPlaying( bool b ) { isPlaying = b; + isStoped = !b; emit playingToggled(b); @@ -157,2 +176,10 @@ void MediaPlayerState::setPlaying( bool b ) { +void MediaPlayerState::setStop( bool b ) { + if ( isStoped == b ) { + return; + } + isStoped = b; + emit stopToggled(b); +} + void MediaPlayerState::setPosition( long p ) { @@ -210,4 +237,2 @@ void MediaPlayerState::setAudio() { - - void MediaPlayerState::toggleFullscreen() { |