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 | |||
@@ -51,8 +51,9 @@ MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) | |||
51 | : QObject( parent, name ) { | 51 | : QObject( parent, name ) { |
52 | Config cfg( "OpiePlayer" ); | 52 | Config cfg( "OpiePlayer" ); |
53 | readConfig( cfg ); | 53 | readConfig( cfg ); |
54 | isStreaming = false; | 54 | isStreaming = false; |
55 | isSeekable = true; | ||
55 | } | 56 | } |
56 | 57 | ||
57 | 58 | ||
58 | MediaPlayerState::~MediaPlayerState() { | 59 | MediaPlayerState::~MediaPlayerState() { |
@@ -94,8 +95,12 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { | |||
94 | bool MediaPlayerState::streaming() { | 95 | bool MediaPlayerState::streaming() { |
95 | return isStreaming; | 96 | return isStreaming; |
96 | } | 97 | } |
97 | 98 | ||
99 | bool MediaPlayerState::seekable() { | ||
100 | return isSeekable; | ||
101 | } | ||
102 | |||
98 | bool MediaPlayerState::fullscreen() { | 103 | bool MediaPlayerState::fullscreen() { |
99 | return isFullscreen; | 104 | return isFullscreen; |
100 | } | 105 | } |
101 | 106 | ||
@@ -111,9 +116,9 @@ bool MediaPlayerState::shuffled() { | |||
111 | return isShuffled; | 116 | return isShuffled; |
112 | } | 117 | } |
113 | 118 | ||
114 | 119 | ||
115 | bool MediaPlayerState:: playlist() { | 120 | bool MediaPlayerState::playlist() { |
116 | return usePlaylist; | 121 | return usePlaylist; |
117 | } | 122 | } |
118 | 123 | ||
119 | bool MediaPlayerState::paused() { | 124 | bool MediaPlayerState::paused() { |
@@ -148,8 +153,17 @@ void MediaPlayerState::setIsStreaming( bool b ) { | |||
148 | } | 153 | } |
149 | isStreaming = b; | 154 | isStreaming = b; |
150 | } | 155 | } |
151 | 156 | ||
157 | void MediaPlayerState::setIsSeekable( bool b ) { | ||
158 | |||
159 | //if ( isSeekable == b ) { | ||
160 | // return; | ||
161 | // } | ||
162 | isSeekable = b; | ||
163 | emit isSeekableToggled(b); | ||
164 | } | ||
165 | |||
152 | 166 | ||
153 | void MediaPlayerState::setFullscreen( bool b ) { | 167 | void MediaPlayerState::setFullscreen( bool b ) { |
154 | if ( isFullscreen == b ) { | 168 | if ( isFullscreen == b ) { |
155 | return; | 169 | return; |