summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/mediaplayerstate.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/mediaplayerstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/mediaplayerstate.h59
1 files changed, 30 insertions, 29 deletions
diff --git a/core/multimedia/opieplayer/mediaplayerstate.h b/core/multimedia/opieplayer/mediaplayerstate.h
index 5d95b92..1a23742 100644
--- a/core/multimedia/opieplayer/mediaplayerstate.h
+++ b/core/multimedia/opieplayer/mediaplayerstate.h
@@ -36,12 +36,12 @@ public:
36 36
37 bool fullscreen() { return isFullscreen; } 37 bool fullscreen() { return isFullscreen; }
38 bool scaled() { return isScaled; } 38 bool scaled() { return isScaled; }
39 bool looping() { return isLooping; } 39 bool looping() { return isLooping; }
40 bool shuffled() { return isShuffled; } 40 bool shuffled() { return isShuffled; }
41 bool playlist() { return usePlaylist; } 41 bool playlist() { return usePlaylist; }
42 bool paused() { return isPaused; } 42 bool paused() { return isPaused; }
43 bool playing() { return isPlaying; } 43 bool playing() { return isPlaying; }
44 long position() { return curPosition; } 44 long position() { return curPosition; }
45 long length() { return curLength; } 45 long length() { return curLength; }
46 char view() { return curView; } 46 char view() { return curView; }
47 47
@@ -50,3 +50,3 @@ public:
50 MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the 50 MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the
51 // number of audio samples if we are using the libmad plugin 51 // number of audio samples if we are using the libmad plugin
52public slots: 52public slots:
@@ -57,22 +57,22 @@ public slots:
57 void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); } 57 void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); }
58 void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); } 58 void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); }
59 void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } 59 void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); }
60 void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } 60 void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); }
61 void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } 61 void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); }
62 void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } 62 void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); }
63 void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } 63 void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); }
64 64
65 void setPrev() { emit prev(); } 65 void setPrev() { emit prev(); }
66 void setNext() { emit next(); } 66 void setNext() { emit next(); }
67 void setList() { setPlaying( FALSE ); setView('l'); } 67 void setList() { setPlaying( FALSE ); setView('l'); }
68 void setVideo() { setView('v'); } 68 void setVideo() { setView('v'); }
69 void setAudio() { setView('a'); } 69 void setAudio() { setView('a'); }
70 70
71 void toggleFullscreen() { setFullscreen( !isFullscreen ); } 71 void toggleFullscreen() { setFullscreen( !isFullscreen ); }
72 void toggleScaled() { setScaled( !isScaled); } 72 void toggleScaled() { setScaled( !isScaled); }
73 void toggleLooping() { setLooping( !isLooping); } 73 void toggleLooping() { setLooping( !isLooping); }
74 void toggleShuffled() { setShuffled( !isShuffled); } 74 void toggleShuffled() { setShuffled( !isShuffled); }
75 void togglePlaylist() { setPlaylist( !usePlaylist); } 75 void togglePlaylist() { setPlaylist( !usePlaylist); }
76 void togglePaused() { setPaused( !isPaused); } 76 void togglePaused() { setPaused( !isPaused); }
77 void togglePlaying() { setPlaying( !isPlaying); } 77 void togglePlaying() { setPlaying( !isPlaying); }
78 78
@@ -108,2 +108,3 @@ private:
108 MediaPlayerDecoder *libmpeg3decoder; 108 MediaPlayerDecoder *libmpeg3decoder;
109// MediaPlayerDecoder *libwavdecoder;
109 110