author | harlekin <harlekin> | 2002-07-09 01:02:37 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-09 01:02:37 (UTC) |
commit | 577841e20b5657411194d74a143b0319fc05cda3 (patch) (unidiff) | |
tree | 0e41da19fff8e2f47d43612a96d503b49b6a6a0b /noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |
parent | 56554891922367c5d4e7d0f6965daa1026c0cc54 (diff) | |
download | opie-577841e20b5657411194d74a143b0319fc05cda3.zip opie-577841e20b5657411194d74a143b0319fc05cda3.tar.gz opie-577841e20b5657411194d74a143b0319fc05cda3.tar.bz2 |
more gui updates
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 { | |||
58 | // public stuff | 58 | // public stuff |
59 | |||
60 | |||
61 | bool MediaPlayerState::streaming() { | ||
62 | return isStreaming; | ||
63 | } | ||
64 | |||
59 | bool MediaPlayerState::fullscreen() { | 65 | bool MediaPlayerState::fullscreen() { |
@@ -87,2 +93,6 @@ bool MediaPlayerState::playing() { | |||
87 | 93 | ||
94 | bool MediaPlayerState::stop() { | ||
95 | return isStoped; | ||
96 | } | ||
97 | |||
88 | long MediaPlayerState::position() { | 98 | long MediaPlayerState::position() { |
@@ -100,2 +110,10 @@ char MediaPlayerState::view() { | |||
100 | // slots | 110 | // slots |
111 | void MediaPlayerState::setIsStreaming( bool b ) { | ||
112 | if ( isStreaming == b ) { | ||
113 | return; | ||
114 | } | ||
115 | isStreaming = b; | ||
116 | } | ||
117 | |||
118 | |||
101 | void MediaPlayerState::setFullscreen( bool b ) { | 119 | void MediaPlayerState::setFullscreen( bool b ) { |
@@ -154,2 +172,3 @@ void MediaPlayerState::setPlaying( bool b ) { | |||
154 | isPlaying = b; | 172 | isPlaying = b; |
173 | isStoped = !b; | ||
155 | emit playingToggled(b); | 174 | emit playingToggled(b); |
@@ -157,2 +176,10 @@ void MediaPlayerState::setPlaying( bool b ) { | |||
157 | 176 | ||
177 | void MediaPlayerState::setStop( bool b ) { | ||
178 | if ( isStoped == b ) { | ||
179 | return; | ||
180 | } | ||
181 | isStoped = b; | ||
182 | emit stopToggled(b); | ||
183 | } | ||
184 | |||
158 | void MediaPlayerState::setPosition( long p ) { | 185 | void MediaPlayerState::setPosition( long p ) { |
@@ -210,4 +237,2 @@ void MediaPlayerState::setAudio() { | |||
210 | 237 | ||
211 | |||
212 | |||
213 | void MediaPlayerState::toggleFullscreen() { | 238 | void MediaPlayerState::toggleFullscreen() { |