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) (show 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 | |||
@@ -27,14 +27,13 @@ public: | |||
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); } |
@@ -85,14 +84,12 @@ private: | |||
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 | ||