author | simon <simon> | 2002-12-02 16:58:29 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 16:58:29 (UTC) |
commit | d86803bacac02ae99388cba069532851a5e08ce8 (patch) (unidiff) | |
tree | 038325e6aaca32d93d93988948d6b36cc3b8bcd3 | |
parent | 0b30001a6e9aef6de72577ba3a4957eeb0febf54 (diff) | |
download | opie-d86803bacac02ae99388cba069532851a5e08ce8.zip opie-d86803bacac02ae99388cba069532851a5e08ce8.tar.gz opie-d86803bacac02ae99388cba069532851a5e08ce8.tar.bz2 |
- save memory, use bitfields
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index b99178d..163586b 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -90,54 +90,54 @@ public slots: | |||
90 | 90 | ||
91 | void toggleFullscreen(); | 91 | void toggleFullscreen(); |
92 | void toggleScaled(); | 92 | void toggleScaled(); |
93 | void toggleLooping(); | 93 | void toggleLooping(); |
94 | void toggleShuffled(); | 94 | void toggleShuffled(); |
95 | void togglePlaylist(); | 95 | void togglePlaylist(); |
96 | void togglePaused(); | 96 | void togglePaused(); |
97 | void togglePlaying(); | 97 | void togglePlaying(); |
98 | void toggleBlank(); | 98 | void toggleBlank(); |
99 | void writeConfig( Config& cfg ) const; | 99 | void writeConfig( Config& cfg ) const; |
100 | 100 | ||
101 | 101 | ||
102 | signals: | 102 | signals: |
103 | void fullscreenToggled( bool ); | 103 | void fullscreenToggled( bool ); |
104 | void scaledToggled( bool ); | 104 | void scaledToggled( bool ); |
105 | void loopingToggled( bool ); | 105 | void loopingToggled( bool ); |
106 | void shuffledToggled( bool ); | 106 | void shuffledToggled( bool ); |
107 | void playlistToggled( bool ); | 107 | void playlistToggled( bool ); |
108 | void pausedToggled( bool ); | 108 | void pausedToggled( bool ); |
109 | void playingToggled( bool ); | 109 | void playingToggled( bool ); |
110 | void stopToggled( bool ); | 110 | void stopToggled( bool ); |
111 | void positionChanged( long ); // When the slider is moved | 111 | void positionChanged( long ); // When the slider is moved |
112 | void positionUpdated( long ); // When the media file progresses | 112 | void positionUpdated( long ); // When the media file progresses |
113 | void lengthChanged( long ); | 113 | void lengthChanged( long ); |
114 | void viewChanged( char ); | 114 | void viewChanged( char ); |
115 | void isSeekableToggled( bool ); | 115 | void isSeekableToggled( bool ); |
116 | void blankToggled( bool ); | 116 | void blankToggled( bool ); |
117 | void videoGammaChanged( int ); | 117 | void videoGammaChanged( int ); |
118 | void prev(); | 118 | void prev(); |
119 | void next(); | 119 | void next(); |
120 | 120 | ||
121 | private: | 121 | private: |
122 | bool streaming; | 122 | bool streaming : 1; |
123 | bool seekable; | 123 | bool seekable : 1; |
124 | bool fullscreen; | 124 | bool fullscreen: 1; |
125 | bool scaled; | 125 | bool scaled : 1; |
126 | bool blanked; | 126 | bool blanked : 1; |
127 | bool looping; | 127 | bool looping : 1; |
128 | bool shuffled; | 128 | bool shuffled : 1; |
129 | bool usePlaylist; | 129 | bool usePlaylist : 1; |
130 | bool paused; | 130 | bool paused : 1; |
131 | bool playing; | 131 | bool playing : 1; |
132 | bool stopped; | 132 | bool stopped : 1; |
133 | long curPosition; | 133 | long curPosition; |
134 | long curLength; | 134 | long curLength; |
135 | char curView; | 135 | char curView; |
136 | int videoGamma; | 136 | int videoGamma; |
137 | void readConfig( Config& cfg ); | 137 | void readConfig( Config& cfg ); |
138 | 138 | ||
139 | }; | 139 | }; |
140 | 140 | ||
141 | 141 | ||
142 | #endif // MEDIA_PLAYER_STATE_H | 142 | #endif // MEDIA_PLAYER_STATE_H |
143 | 143 | ||