author | harlekin <harlekin> | 2002-07-03 14:44:22 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-03 14:44:22 (UTC) |
commit | e1e4956ec7ffa9a07f98b03e831f0f9627556a6c (patch) (unidiff) | |
tree | c0545c6a22732f05804bda7704227132f64b7239 /noncore/multimedia/opieplayer2/mediaplayerstate.h | |
parent | 61770de77f2abe8012d44cce49d04489e4187644 (diff) | |
download | opie-e1e4956ec7ffa9a07f98b03e831f0f9627556a6c.zip opie-e1e4956ec7ffa9a07f98b03e831f0f9627556a6c.tar.gz opie-e1e4956ec7ffa9a07f98b03e831f0f9627556a6c.tar.bz2 |
much more code cleanup, make if look more like c++ code
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 374e780..8a64939 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -21,26 +21,25 @@ public: | |||
21 | bool scaled() { return isScaled; } | 21 | bool scaled() { return isScaled; } |
22 | bool looping() { return isLooping; } | 22 | bool looping() { return isLooping; } |
23 | bool shuffled() { return isShuffled; } | 23 | bool shuffled() { return isShuffled; } |
24 | bool playlist() { return usePlaylist; } | 24 | bool playlist() { return usePlaylist; } |
25 | bool paused() { return isPaused; } | 25 | bool paused() { return isPaused; } |
26 | bool playing() { return isPlaying; } | 26 | bool playing() { return isPlaying; } |
27 | long position() { return curPosition; } | 27 | long position() { return curPosition; } |
28 | long length() { return curLength; } | 28 | long length() { return curLength; } |
29 | char view() { return curView; } | 29 | char view() { return curView; } |
30 | 30 | ||
31 | MediaPlayerDecoder *newDecoder( const QString& file ); | 31 | MediaPlayerDecoder *newDecoder( const QString& file ); |
32 | MediaPlayerDecoder *curDecoder(); | 32 | MediaPlayerDecoder *curDecoder(); |
33 | MediaPlayerDecoder *libMpeg3Decoder(); // ### Yucky hack needed to use libmpeg3plugin to get the | 33 | |
34 | // number of audio samples if we are using the libmad plugin | ||
35 | public slots: | 34 | public slots: |
36 | void setFullscreen( bool b ) { if ( isFullscreen == b ) return; isFullscreen = b; emit fullscreenToggled(b); } | 35 | void setFullscreen( bool b ) { if ( isFullscreen == b ) return; isFullscreen = b; emit fullscreenToggled(b); } |
37 | void setScaled( bool b ) { if ( isScaled == b ) return; isScaled = b; emit scaledToggled(b); } | 36 | void setScaled( bool b ) { if ( isScaled == b ) return; isScaled = b; emit scaledToggled(b); } |
38 | void setLooping( bool b ) { if ( isLooping == b ) return; isLooping = b; emit loopingToggled(b); } | 37 | void setLooping( bool b ) { if ( isLooping == b ) return; isLooping = b; emit loopingToggled(b); } |
39 | void setShuffled( bool b ) { if ( isShuffled == b ) return; isShuffled = b; emit shuffledToggled(b); } | 38 | void setShuffled( bool b ) { if ( isShuffled == b ) return; isShuffled = b; emit shuffledToggled(b); } |
40 | void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); } | 39 | void setPlaylist( bool b ) { if ( usePlaylist == b ) return; usePlaylist = b; emit playlistToggled(b); } |
41 | void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); } | 40 | void setPaused( bool b ) { if ( isPaused == b ) return; isPaused = b; emit pausedToggled(b); } |
42 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } | 41 | void setPlaying( bool b ) { if ( isPlaying == b ) return; isPlaying = b; emit playingToggled(b); } |
43 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } | 42 | void setPosition( long p ) { if ( curPosition == p ) return; curPosition = p; emit positionChanged(p); } |
44 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } | 43 | void updatePosition( long p ){ if ( curPosition == p ) return; curPosition = p; emit positionUpdated(p); } |
45 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } | 44 | void setLength( long l ) { if ( curLength == l ) return; curLength = l; emit lengthChanged(l); } |
46 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } | 45 | void setView( char v ) { if ( curView == v ) return; curView = v; emit viewChanged(v); } |
@@ -79,22 +78,20 @@ private: | |||
79 | bool isFullscreen; | 78 | bool isFullscreen; |
80 | bool isScaled; | 79 | bool isScaled; |
81 | bool isLooping; | 80 | bool isLooping; |
82 | bool isShuffled; | 81 | bool isShuffled; |
83 | bool usePlaylist; | 82 | bool usePlaylist; |
84 | bool isPaused; | 83 | bool isPaused; |
85 | bool isPlaying; | 84 | bool isPlaying; |
86 | long curPosition; | 85 | long curPosition; |
87 | long curLength; | 86 | long curLength; |
88 | char curView; | 87 | char curView; |
89 | 88 | ||
90 | MediaPlayerDecoder *decoder; | 89 | MediaPlayerDecoder *decoder; |
91 | MediaPlayerDecoder *libmpeg3decoder; | ||
92 | // MediaPlayerDecoder *libwavdecoder; | ||
93 | 90 | ||
94 | void readConfig( Config& cfg ); | 91 | void readConfig( Config& cfg ); |
95 | void writeConfig( Config& cfg ) const; | 92 | void writeConfig( Config& cfg ) const; |
96 | }; | 93 | }; |
97 | 94 | ||
98 | 95 | ||
99 | #endif // MEDIA_PLAYER_STATE_H | 96 | #endif // MEDIA_PLAYER_STATE_H |
100 | 97 | ||