Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 85d9bac..0d21027 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp @@ -43,153 +43,96 @@ //#define MediaPlayerDebug(x) qDebug x #define MediaPlayerDebug(x) MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) : QObject( parent, name ) { Config cfg( "OpiePlayer" ); readConfig( cfg ); streaming = false; seekable = true; } MediaPlayerState::~MediaPlayerState() { } void MediaPlayerState::readConfig( Config& cfg ) { cfg.setGroup("Options"); fullscreen = cfg.readBoolEntry( "FullScreen" ); scaled = cfg.readBoolEntry( "Scaling" ); looping = cfg.readBoolEntry( "Looping" ); shuffled = cfg.readBoolEntry( "Shuffle" ); usePlaylist = cfg.readBoolEntry( "UsePlayList" ); videoGamma = cfg.readNumEntry( "VideoGamma" ); usePlaylist = TRUE; playing = FALSE; streaming = FALSE; paused = FALSE; curPosition = 0; curLength = 0; curView = 'l'; } void MediaPlayerState::writeConfig( Config& cfg ) const { cfg.setGroup( "Options" ); cfg.writeEntry( "FullScreen", fullscreen ); cfg.writeEntry( "Scaling", scaled ); cfg.writeEntry( "Looping", looping ); cfg.writeEntry( "Shuffle", shuffled ); cfg.writeEntry( "UsePlayList", usePlaylist ); cfg.writeEntry( "VideoGamma", videoGamma ); } - -// public stuff - - -bool MediaPlayerState::isStreaming() const { - return streaming; -} - -bool MediaPlayerState::isSeekable() const { - return seekable; -} - -bool MediaPlayerState::isFullscreen() const { - return fullscreen; -} - -bool MediaPlayerState::isScaled() const { - return scaled; -} - -bool MediaPlayerState::isLooping() const { - return looping; -} - -bool MediaPlayerState::isShuffled() const { - return shuffled; -} - - -bool MediaPlayerState::isUsingPlaylist() const { - return usePlaylist; -} - -bool MediaPlayerState::isPaused() const { - return paused; -} - -bool MediaPlayerState::isPlaying() const { - return playing; -} - -bool MediaPlayerState::isStop() const { - return stoped; -} - -long MediaPlayerState::position() const { - return curPosition; -} - -long MediaPlayerState::length() const { - return curLength; -} - -char MediaPlayerState::view() const { - return curView; -} - // slots void MediaPlayerState::setIsStreaming( bool b ) { if ( streaming == b ) { return; } streaming = b; } void MediaPlayerState::setIsSeekable( bool b ) { //if ( isSeekable == b ) { // return; // } seekable = b; emit isSeekableToggled(b); } void MediaPlayerState::setFullscreen( bool b ) { if ( fullscreen == b ) { return; } fullscreen = b; emit fullscreenToggled(b); } void MediaPlayerState::setBlanked( bool b ) { if ( blanked == b ) { return; } blanked = b; emit blankToggled(b); } void MediaPlayerState::setScaled( bool b ) { if ( scaled == b ) { return; } scaled = b; emit scaledToggled(b); } void MediaPlayerState::setLooping( bool b ) { if ( looping == b ) { return; |