Diffstat (limited to 'core/multimedia/opieplayer/mediaplayerstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/mediaplayerstate.h | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/core/multimedia/opieplayer/mediaplayerstate.h b/core/multimedia/opieplayer/mediaplayerstate.h index e82c263..ad273f1 100644 --- a/core/multimedia/opieplayer/mediaplayerstate.h +++ b/core/multimedia/opieplayer/mediaplayerstate.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
@@ -22,2 +22,3 @@ | |||
22 | 22 | ||
23 | |||
23 | #include <qobject.h> | 24 | #include <qobject.h> |
@@ -35,12 +36,13 @@ public: | |||
35 | 36 | ||
36 | bool fullscreen() { return isFullscreen; } | 37 | |
37 | bool scaled() { return isScaled; } | 38 | bool fullscreen() { return isFullscreen; } |
38 | bool looping() { return isLooping; } | 39 | bool scaled() { return isScaled; } |
39 | bool shuffled() { return isShuffled; } | 40 | bool looping() { return isLooping; } |
40 | bool playlist() { return usePlaylist; } | 41 | bool shuffled() { return isShuffled; } |
41 | bool paused() { return isPaused; } | 42 | bool playlist() { return usePlaylist; } |
42 | bool playing() { return isPlaying; } | 43 | bool paused() { return isPaused; } |
43 | long position() { return curPosition; } | 44 | bool playing() { return isPlaying; } |
44 | long length() { return curLength; } | 45 | long position() { return curPosition; } |
45 | char view() { return curView; } | 46 | long length() { return curLength; } |
47 | char view() { return curView; } | ||
46 | 48 | ||
@@ -49,3 +51,3 @@ public: | |||
49 | MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the | 51 | MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the |
50 | // number of audio samples if we are using the libmad plugin | 52 | // number of audio samples if we are using the libmad plugin |
51 | public slots: | 53 | public slots: |
@@ -56,22 +58,22 @@ public slots: | |||
56 | 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); } |
57 | 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); } |
58 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } | 60 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } |
59 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } | 61 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } |
60 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } | 62 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } |
61 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } | 63 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } |
62 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } | 64 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } |
63 | 65 | ||
64 | void setPrev() { emit prev(); } | 66 | void setPrev() { emit prev(); } |
65 | void setNext() { emit next(); } | 67 | void setNext() { emit next(); } |
66 | void setList() { setPlaying( FALSE ); setView('l'); } | 68 | void setList() { setPlaying( FALSE ); setView('l'); } |
67 | void setVideo() { setView('v'); } | 69 | void setVideo() { setView('v'); } |
68 | void setAudio() { setView('a'); } | 70 | void setAudio() { setView('a'); } |
69 | 71 | ||
70 | void toggleFullscreen() { setFullscreen( !isFullscreen ); } | 72 | void toggleFullscreen() { setFullscreen( !isFullscreen ); } |
71 | void toggleScaled() { setScaled( !isScaled); } | 73 | void toggleScaled() { setScaled( !isScaled); } |
72 | void toggleLooping() { setLooping( !isLooping); } | 74 | void toggleLooping() { setLooping( !isLooping); } |
73 | void toggleShuffled() { setShuffled( !isShuffled); } | 75 | void toggleShuffled() { setShuffled( !isShuffled); } |
74 | void togglePlaylist() { setPlaylist( !usePlaylist); } | 76 | void togglePlaylist() { setPlaylist( !usePlaylist); } |
75 | void togglePaused() { setPaused( !isPaused); } | 77 | void togglePaused() { setPaused( !isPaused); } |
76 | void togglePlaying() { setPlaying( !isPlaying); } | 78 | void togglePlaying() { setPlaying( !isPlaying); } |
77 | 79 | ||
@@ -107,2 +109,3 @@ private: | |||
107 | MediaPlayerDecoder *libmpeg3decoder; | 109 | MediaPlayerDecoder *libmpeg3decoder; |
110 | // MediaPlayerDecoder *libwavdecoder; | ||
108 | 111 | ||