From 577841e20b5657411194d74a143b0319fc05cda3 Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 09 Jul 2002 01:02:37 +0000 Subject: more gui updates --- (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') 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 @@ -56,6 +56,12 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { // public stuff + + +bool MediaPlayerState::streaming() { + return isStreaming; +} + bool MediaPlayerState::fullscreen() { return isFullscreen; } @@ -85,6 +91,10 @@ bool MediaPlayerState::playing() { return isPlaying; } +bool MediaPlayerState::stop() { + return isStoped; +} + long MediaPlayerState::position() { return curPosition; } @@ -98,6 +108,14 @@ char MediaPlayerState::view() { } // slots +void MediaPlayerState::setIsStreaming( bool b ) { + if ( isStreaming == b ) { + return; + } + isStreaming = b; +} + + void MediaPlayerState::setFullscreen( bool b ) { if ( isFullscreen == b ) { return; @@ -152,9 +170,18 @@ void MediaPlayerState::setPlaying( bool b ) { return; } isPlaying = b; + isStoped = !b; emit playingToggled(b); } +void MediaPlayerState::setStop( bool b ) { + if ( isStoped == b ) { + return; + } + isStoped = b; + emit stopToggled(b); +} + void MediaPlayerState::setPosition( long p ) { if ( curPosition == p ) { return; @@ -208,8 +235,6 @@ void MediaPlayerState::setAudio() { setView('a'); } - - void MediaPlayerState::toggleFullscreen() { setFullscreen( !isFullscreen ); } -- cgit v0.9.0.2