author | llornkcor <llornkcor> | 2002-08-20 12:32:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-20 12:32:06 (UTC) |
commit | ec61d92a7ea43e517d38d26af71164d0fd70d16c (patch) (unidiff) | |
tree | 53464e7755944a00ff3c4f282abd235a5225dac9 | |
parent | 41fe19a4e2e808d48429c84f4b7dd6b9af797ead (diff) | |
download | opie-ec61d92a7ea43e517d38d26af71164d0fd70d16c.zip opie-ec61d92a7ea43e517d38d26af71164d0fd70d16c.tar.gz opie-ec61d92a7ea43e517d38d26af71164d0fd70d16c.tar.bz2 |
need to still write playerstate to config
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 3 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 5503705..603d426 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp | |||
@@ -291,11 +291,12 @@ void MediaPlayer::keyReleaseEvent( QKeyEvent *e) { | |||
291 | break; | 291 | break; |
292 | } | 292 | } |
293 | } | 293 | } |
294 | 294 | ||
295 | void MediaPlayer::cleanUp() {// this happens on closing | 295 | void MediaPlayer::cleanUp() {// this happens on closing |
296 | Config cfg( "OpiePlayer" ); | 296 | Config cfg( "OpiePlayer" ); |
297 | playList->writeConfig( cfg ); | 297 | mediaPlayerState->writeConfig( cfg ); |
298 | playList->writeConfig( cfg ); | ||
298 | 299 | ||
299 | // QPEApplication::grabKeyboard(); | 300 | // QPEApplication::grabKeyboard(); |
300 | // QPEApplication::ungrabKeyboard(); | 301 | // QPEApplication::ungrabKeyboard(); |
301 | } | 302 | } |
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index b3431d7..215a2a8 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -91,12 +91,14 @@ public slots: | |||
91 | void toggleLooping(); | 91 | void toggleLooping(); |
92 | void toggleShuffled(); | 92 | void toggleShuffled(); |
93 | void togglePlaylist(); | 93 | void togglePlaylist(); |
94 | void togglePaused(); | 94 | void togglePaused(); |
95 | void togglePlaying(); | 95 | void togglePlaying(); |
96 | void toggleBlank(); | 96 | void toggleBlank(); |
97 | void writeConfig( Config& cfg ) const; | ||
98 | |||
97 | 99 | ||
98 | signals: | 100 | signals: |
99 | void fullscreenToggled( bool ); | 101 | void fullscreenToggled( bool ); |
100 | void scaledToggled( bool ); | 102 | void scaledToggled( bool ); |
101 | void loopingToggled( bool ); | 103 | void loopingToggled( bool ); |
102 | void shuffledToggled( bool ); | 104 | void shuffledToggled( bool ); |
@@ -122,14 +124,12 @@ private: | |||
122 | bool usePlaylist; | 124 | bool usePlaylist; |
123 | long curPosition; | 125 | long curPosition; |
124 | long curLength; | 126 | long curLength; |
125 | char curView; | 127 | char curView; |
126 | 128 | ||
127 | void readConfig( Config& cfg ); | 129 | void readConfig( Config& cfg ); |
128 | void writeConfig( Config& cfg ) const; | ||
129 | |||
130 | 130 | ||
131 | }; | 131 | }; |
132 | 132 | ||
133 | 133 | ||
134 | #endif // MEDIA_PLAYER_STATE_H | 134 | #endif // MEDIA_PLAYER_STATE_H |
135 | 135 | ||