summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp26
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.h26
2 files changed, 26 insertions, 26 deletions
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
@@ -71,98 +71,98 @@ void MediaPlayerState::readConfig( Config& cfg ) {
usePlaylist = TRUE;
isPlaying = FALSE;
isStreaming = FALSE;
isPaused = FALSE;
curPosition = 0;
curLength = 0;
curView = 'l';
}
void MediaPlayerState::writeConfig( Config& cfg ) const {
cfg.setGroup( "Options" );
cfg.writeEntry( "FullScreen", isFullscreen );
cfg.writeEntry( "Scaling", isScaled );
cfg.writeEntry( "Looping", isLooping );
cfg.writeEntry( "Shuffle", isShuffled );
cfg.writeEntry( "UsePlayList", usePlaylist );
cfg.writeEntry( "VideoGamma", videoGamma );
}
// 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;
}
// slots
void MediaPlayerState::setIsStreaming( bool b ) {
if ( isStreaming == b ) {
return;
}
isStreaming = b;
}
void MediaPlayerState::setIsSeekable( bool b ) {
//if ( isSeekable == b ) {
// return;
// }
isSeekable = b;
emit isSeekableToggled(b);
}
void MediaPlayerState::setFullscreen( bool b ) {
if ( isFullscreen == b ) {
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
@@ -29,61 +29,61 @@
Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
// this file is based on work by trolltech
#ifndef MEDIA_PLAYER_STATE_H
#define MEDIA_PLAYER_STATE_H
#include <qobject.h>
class MediaPlayerDecoder;
class Config;
class MediaPlayerState : public QObject {
Q_OBJECT
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 );
void setIsSeekable( bool b );
void setFullscreen( bool b );
void setScaled( bool b );
void setLooping( bool b );
void setShuffled( bool b );
void setPlaylist( bool b );
void setPaused( bool b );
void setPlaying( bool b );
void setStop( bool b );
void setPosition( long p );
void updatePosition( long p );
void setLength( long l );
void setView( char v );
void setBlanked( bool b );
void setVideoGamma( int v );
void setPrev();
void setNext();
void setList();
void setVideo();
void setAudio();