author | llornkcor <llornkcor> | 2002-08-20 12:32:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-20 12:32:06 (UTC) |
commit | ec61d92a7ea43e517d38d26af71164d0fd70d16c (patch) (side-by-side diff) | |
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 @@ -289,13 +289,14 @@ void MediaPlayer::keyReleaseEvent( QKeyEvent *e) { qDebug("Blank here"); // mediaPlayerState->toggleBlank(); break; } } void MediaPlayer::cleanUp() {// this happens on closing Config cfg( "OpiePlayer" ); - playList->writeConfig( cfg ); + mediaPlayerState->writeConfig( cfg ); + playList->writeConfig( cfg ); // QPEApplication::grabKeyboard(); // QPEApplication::ungrabKeyboard(); } 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 @@ -89,16 +89,18 @@ public slots: void toggleFullscreen(); void toggleScaled(); void toggleLooping(); void toggleShuffled(); void togglePlaylist(); void togglePaused(); void togglePlaying(); void toggleBlank(); + void writeConfig( Config& cfg ) const; + signals: void fullscreenToggled( bool ); void scaledToggled( bool ); void loopingToggled( bool ); void shuffledToggled( bool ); void playlistToggled( bool ); void pausedToggled( bool ); @@ -120,16 +122,14 @@ private: bool isLooping; bool isShuffled; bool usePlaylist; long curPosition; long curLength; char curView; void readConfig( Config& cfg ); - void writeConfig( Config& cfg ) const; - }; #endif // MEDIA_PLAYER_STATE_H |