Diffstat (limited to 'core/multimedia/opieplayer/mediaplayerstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/mediaplayerstate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/mediaplayerstate.h b/core/multimedia/opieplayer/mediaplayerstate.h index 06c5556..26185c5 100644 --- a/core/multimedia/opieplayer/mediaplayerstate.h +++ b/core/multimedia/opieplayer/mediaplayerstate.h | |||
@@ -36,49 +36,51 @@ public: | |||
36 | 36 | ||
37 | bool isStreaming; | 37 | bool isStreaming; |
38 | bool fullscreen() { return isFullscreen; } | 38 | bool fullscreen() { return isFullscreen; } |
39 | bool scaled() { return isScaled; } | 39 | bool scaled() { return isScaled; } |
40 | bool looping() { return isLooping; } | 40 | bool looping() { return isLooping; } |
41 | bool shuffled() { return isShuffled; } | 41 | bool shuffled() { return isShuffled; } |
42 | bool playlist() { return usePlaylist; } | 42 | bool playlist() { return usePlaylist; } |
43 | bool paused() { return isPaused; } | 43 | bool paused() { return isPaused; } |
44 | bool playing() { return isPlaying; } | 44 | bool playing() { return isPlaying; } |
45 | long position() { return curPosition; } | 45 | long position() { return curPosition; } |
46 | long length() { return curLength; } | 46 | long length() { return curLength; } |
47 | char view() { return curView; } | 47 | char view() { return curView; } |
48 | 48 | ||
49 | MediaPlayerDecoder *newDecoder( const QString& file ); | 49 | MediaPlayerDecoder *newDecoder( const QString& file ); |
50 | MediaPlayerDecoder *curDecoder(); | 50 | MediaPlayerDecoder *curDecoder(); |
51 | MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the | 51 | MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the |
52 | // number of audio samples if we are using the libmad plugin | 52 | // number of audio samples if we are using the libmad plugin |
53 | public slots: | 53 | public slots: |
54 | void setFullscreen( bool b ) { if ( isFullscreen == b ) return; isFullscreen = b; emit fullscreenToggled(b); } | 54 | void setFullscreen( bool b ) { if ( isFullscreen == b ) return; isFullscreen = b; emit fullscreenToggled(b); } |
55 | void setScaled( bool b ) { if ( isScaled == b ) return; isScaled = b; emit scaledToggled(b); } | 55 | void setScaled( bool b ) { if ( isScaled == b ) return; isScaled = b; emit scaledToggled(b); } |
56 | void setLooping( bool b ) { if ( isLooping == b ) return; isLooping = b; emit loopingToggled(b); } | 56 | void setLooping( bool b ) { if ( isLooping == b ) return; isLooping = b; emit loopingToggled(b); } |
57 | void setShuffled( bool b ) { if ( isShuffled == b ) return; isShuffled = b; emit shuffledToggled(b); } | 57 | void setShuffled( bool b ) { if ( isShuffled == b ) return; isShuffled = b; emit shuffledToggled(b); } |
58 | void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); } | 58 | void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); } |
59 | void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); } | 59 | void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); } |
60 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } | 60 | |
61 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } | ||
62 | |||
61 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } | 63 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } |
62 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } | 64 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } |
63 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } | 65 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } |
64 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } | 66 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } |
65 | 67 | ||
66 | void setPrev() { emit prev(); } | 68 | void setPrev() { emit prev(); } |
67 | void setNext() { emit next(); } | 69 | void setNext() { emit next(); } |
68 | void setList() { setPlaying( FALSE ); setView('l'); } | 70 | void setList() { setPlaying( FALSE ); setView('l'); } |
69 | void setVideo() { setView('v'); } | 71 | void setVideo() { setView('v'); } |
70 | void setAudio() { setView('a'); } | 72 | void setAudio() { setView('a'); } |
71 | 73 | ||
72 | void toggleFullscreen() { setFullscreen( !isFullscreen ); } | 74 | void toggleFullscreen() { setFullscreen( !isFullscreen ); } |
73 | void toggleScaled() { setScaled( !isScaled); } | 75 | void toggleScaled() { setScaled( !isScaled); } |
74 | void toggleLooping() { setLooping( !isLooping); } | 76 | void toggleLooping() { setLooping( !isLooping); } |
75 | void toggleShuffled() { setShuffled( !isShuffled); } | 77 | void toggleShuffled() { setShuffled( !isShuffled); } |
76 | void togglePlaylist() { setPlaylist( !usePlaylist); } | 78 | void togglePlaylist() { setPlaylist( !usePlaylist); } |
77 | void togglePaused() { setPaused( !isPaused); } | 79 | void togglePaused() { setPaused( !isPaused); } |
78 | void togglePlaying() { setPlaying( !isPlaying); } | 80 | void togglePlaying() { setPlaying( !isPlaying); } |
79 | 81 | ||
80 | signals: | 82 | signals: |
81 | void fullscreenToggled( bool ); | 83 | void fullscreenToggled( bool ); |
82 | void scaledToggled( bool ); | 84 | void scaledToggled( bool ); |
83 | void loopingToggled( bool ); | 85 | void loopingToggled( bool ); |
84 | void shuffledToggled( bool ); | 86 | void shuffledToggled( bool ); |