-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 12 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index aa85176..43040c2 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |||
@@ -138,20 +138,12 @@ void MediaPlayerState::setShuffled( bool b ) { | |||
138 | return; | 138 | return; |
139 | } | 139 | } |
140 | shuffled = b; | 140 | shuffled = b; |
141 | emit shuffledToggled(b); | 141 | emit shuffledToggled(b); |
142 | } | 142 | } |
143 | 143 | ||
144 | void MediaPlayerState::setUsingPlaylist( bool b ) { | ||
145 | if ( usePlaylist == b ) { | ||
146 | return; | ||
147 | } | ||
148 | usePlaylist = b; | ||
149 | emit playlistToggled(b); | ||
150 | } | ||
151 | |||
152 | void MediaPlayerState::setPaused( bool b ) { | 144 | void MediaPlayerState::setPaused( bool b ) { |
153 | if ( paused == b ) { | 145 | if ( paused == b ) { |
154 | paused = FALSE; | 146 | paused = FALSE; |
155 | emit pausedToggled(FALSE); | 147 | emit pausedToggled(FALSE); |
156 | return; | 148 | return; |
157 | } | 149 | } |
@@ -250,16 +242,12 @@ void MediaPlayerState::toggleLooping() { | |||
250 | } | 242 | } |
251 | 243 | ||
252 | void MediaPlayerState::toggleShuffled() { | 244 | void MediaPlayerState::toggleShuffled() { |
253 | setShuffled( !shuffled); | 245 | setShuffled( !shuffled); |
254 | } | 246 | } |
255 | 247 | ||
256 | void MediaPlayerState::togglePlaylist() { | ||
257 | setUsingPlaylist( !usePlaylist); | ||
258 | } | ||
259 | |||
260 | void MediaPlayerState::togglePaused() { | 248 | void MediaPlayerState::togglePaused() { |
261 | setPaused( !paused); | 249 | setPaused( !paused); |
262 | } | 250 | } |
263 | 251 | ||
264 | void MediaPlayerState::togglePlaying() { | 252 | void MediaPlayerState::togglePlaying() { |
265 | setPlaying( !playing); | 253 | setPlaying( !playing); |
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 163586b..d15894f 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -68,13 +68,12 @@ public slots: | |||
68 | void setIsStreaming( bool b ); | 68 | void setIsStreaming( bool b ); |
69 | void setIsSeekable( bool b ); | 69 | void setIsSeekable( bool b ); |
70 | void setFullscreen( bool b ); | 70 | void setFullscreen( bool b ); |
71 | void setScaled( bool b ); | 71 | void setScaled( bool b ); |
72 | void setLooping( bool b ); | 72 | void setLooping( bool b ); |
73 | void setShuffled( bool b ); | 73 | void setShuffled( bool b ); |
74 | void setUsingPlaylist( bool b ); | ||
75 | void setPaused( bool b ); | 74 | void setPaused( bool b ); |
76 | void setPlaying( bool b ); | 75 | void setPlaying( bool b ); |
77 | void setStopped( bool b ); | 76 | void setStopped( bool b ); |
78 | void setPosition( long p ); | 77 | void setPosition( long p ); |
79 | void updatePosition( long p ); | 78 | void updatePosition( long p ); |
80 | void setLength( long l ); | 79 | void setLength( long l ); |
@@ -89,13 +88,12 @@ public slots: | |||
89 | void setAudio(); | 88 | void setAudio(); |
90 | 89 | ||
91 | void toggleFullscreen(); | 90 | void toggleFullscreen(); |
92 | void toggleScaled(); | 91 | void toggleScaled(); |
93 | void toggleLooping(); | 92 | void toggleLooping(); |
94 | void toggleShuffled(); | 93 | void toggleShuffled(); |
95 | void togglePlaylist(); | ||
96 | void togglePaused(); | 94 | void togglePaused(); |
97 | void togglePlaying(); | 95 | void togglePlaying(); |
98 | void toggleBlank(); | 96 | void toggleBlank(); |
99 | void writeConfig( Config& cfg ) const; | 97 | void writeConfig( Config& cfg ) const; |
100 | 98 | ||
101 | 99 | ||