From b992707037f3bbf4573c52b34b3d25cbbf07bad0 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 02 Dec 2002 13:46:23 +0000 Subject: - made the accessor functions constant --- (limited to 'noncore/multimedia') diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 0b33dfd..a80d8fd 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp @@ -92,56 +92,56 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { // public stuff -bool MediaPlayerState::streaming() { +bool MediaPlayerState::streaming() const { return isStreaming; } -bool MediaPlayerState::seekable() { +bool MediaPlayerState::seekable() const { return isSeekable; } -bool MediaPlayerState::fullscreen() { +bool MediaPlayerState::fullscreen() const { return isFullscreen; } -bool MediaPlayerState::scaled() { +bool MediaPlayerState::scaled() const { return isScaled; } -bool MediaPlayerState::looping() { +bool MediaPlayerState::looping() const { return isLooping; } -bool MediaPlayerState::shuffled() { +bool MediaPlayerState::shuffled() const { return isShuffled; } -bool MediaPlayerState::playlist() { +bool MediaPlayerState::playlist() const { return usePlaylist; } -bool MediaPlayerState::paused() { +bool MediaPlayerState::paused() const { return isPaused; } -bool MediaPlayerState::playing() { +bool MediaPlayerState::playing() const { return isPlaying; } -bool MediaPlayerState::stop() { +bool MediaPlayerState::stop() const { return isStoped; } -long MediaPlayerState::position() { +long MediaPlayerState::position() const { return curPosition; } -long MediaPlayerState::length() { +long MediaPlayerState::length() const { return curLength; } -char MediaPlayerState::view() { +char MediaPlayerState::view() const { return curView; } diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 154e3b0..f9c1eeb 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h @@ -50,19 +50,19 @@ public: MediaPlayerState( QObject *parent, const char *name ); ~MediaPlayerState(); - bool streaming(); - bool seekable(); - bool fullscreen(); - bool scaled(); - bool looping(); - bool shuffled(); - bool playlist(); - bool paused(); - bool playing(); - bool stop(); - long position(); - long length(); - char view(); + bool streaming() const; + bool seekable() const; + bool fullscreen() const; + bool scaled() const; + bool looping() const; + bool shuffled() const; + bool playlist() const; + bool paused() const; + bool playing() const; + bool stop() const; + long position() const; + long length() const; + char view() const; public slots: void setIsStreaming( bool b ); -- cgit v0.9.0.2