Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 4ec5989..0b33dfd 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp @@ -54,2 +54,3 @@ MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) isStreaming = false; + isSeekable = true; } @@ -97,2 +98,6 @@ bool MediaPlayerState::streaming() { +bool MediaPlayerState::seekable() { + return isSeekable; +} + bool MediaPlayerState::fullscreen() { @@ -114,3 +119,3 @@ bool MediaPlayerState::shuffled() { -bool MediaPlayerState:: playlist() { +bool MediaPlayerState::playlist() { return usePlaylist; @@ -151,2 +156,11 @@ void MediaPlayerState::setIsStreaming( bool b ) { +void MediaPlayerState::setIsSeekable( bool b ) { + + //if ( isSeekable == b ) { + // return; + // } + isSeekable = b; + emit isSeekableToggled(b); +} + |