Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 215a2a8..4fef8e0 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -10,36 +10,38 @@ | |||
10 | _;:, .> :=|. This program is free software; you can | 10 | _;:, .> :=|. This program is free software; you can |
11 | .> <`_, > . <= redistribute it and/or modify it under | 11 | .> <`_, > . <= redistribute it and/or modify it under |
12 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 12 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
13 | .="- .-=="i, .._ License as published by the Free Software | 13 | .="- .-=="i, .._ License as published by the Free Software |
14 | - . .-<_> .<> Foundation; either version 2 of the License, | 14 | - . .-<_> .<> Foundation; either version 2 of the License, |
15 | ._= =} : or (at your option) any later version. | 15 | ._= =} : or (at your option) any later version. |
16 | .%`+i> _;_. | 16 | .%`+i> _;_. |
17 | .i_,=:_. -<s. This program is distributed in the hope that | 17 | .i_,=:_. -<s. This program is distributed in the hope that |
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
19 | : .. .:, . . . without even the implied warranty of | 19 | : .. .:, . . . without even the implied warranty of |
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
22 | ..}^=.= = ; Library General Public License for more | 22 | ..}^=.= = ; General Public License for more |
23 | ++= -. .` .: details. | 23 | ++= -. .` .: details. |
24 | : = ...= . :.=- | 24 | : = ...= . :.=- |
25 | -. .:....=;==+<; You should have received a copy of the GNU | 25 | -. .:....=;==+<; You should have received a copy of the GNU |
26 | -_. . . )=. = Library General Public License along with | 26 | -_. . . )=. = General Public License along with |
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | // this file is based on work by trolltech | ||
35 | |||
34 | #ifndef MEDIA_PLAYER_STATE_H | 36 | #ifndef MEDIA_PLAYER_STATE_H |
35 | #define MEDIA_PLAYER_STATE_H | 37 | #define MEDIA_PLAYER_STATE_H |
36 | 38 | ||
37 | 39 | ||
38 | #include <qobject.h> | 40 | #include <qobject.h> |
39 | 41 | ||
40 | 42 | ||
41 | class MediaPlayerDecoder; | 43 | class MediaPlayerDecoder; |
42 | class Config; | 44 | class Config; |
43 | 45 | ||
44 | 46 | ||
45 | class MediaPlayerState : public QObject { | 47 | class MediaPlayerState : public QObject { |
@@ -70,24 +72,25 @@ public slots: | |||
70 | void setScaled( bool b ); | 72 | void setScaled( bool b ); |
71 | void setLooping( bool b ); | 73 | void setLooping( bool b ); |
72 | void setShuffled( bool b ); | 74 | void setShuffled( bool b ); |
73 | void setPlaylist( bool b ); | 75 | void setPlaylist( bool b ); |
74 | void setPaused( bool b ); | 76 | void setPaused( bool b ); |
75 | void setPlaying( bool b ); | 77 | void setPlaying( bool b ); |
76 | void setStop( bool b ); | 78 | void setStop( bool b ); |
77 | void setPosition( long p ); | 79 | void setPosition( long p ); |
78 | void updatePosition( long p ); | 80 | void updatePosition( long p ); |
79 | void setLength( long l ); | 81 | void setLength( long l ); |
80 | void setView( char v ); | 82 | void setView( char v ); |
81 | void setBlanked( bool b ); | 83 | void setBlanked( bool b ); |
84 | void setVideoGamma( int v ); | ||
82 | 85 | ||
83 | void setPrev(); | 86 | void setPrev(); |
84 | void setNext(); | 87 | void setNext(); |
85 | void setList(); | 88 | void setList(); |
86 | void setVideo(); | 89 | void setVideo(); |
87 | void setAudio(); | 90 | void setAudio(); |
88 | 91 | ||
89 | void toggleFullscreen(); | 92 | void toggleFullscreen(); |
90 | void toggleScaled(); | 93 | void toggleScaled(); |
91 | void toggleLooping(); | 94 | void toggleLooping(); |
92 | void toggleShuffled(); | 95 | void toggleShuffled(); |
93 | void togglePlaylist(); | 96 | void togglePlaylist(); |
@@ -102,34 +105,35 @@ signals: | |||
102 | void scaledToggled( bool ); | 105 | void scaledToggled( bool ); |
103 | void loopingToggled( bool ); | 106 | void loopingToggled( bool ); |
104 | void shuffledToggled( bool ); | 107 | void shuffledToggled( bool ); |
105 | void playlistToggled( bool ); | 108 | void playlistToggled( bool ); |
106 | void pausedToggled( bool ); | 109 | void pausedToggled( bool ); |
107 | void playingToggled( bool ); | 110 | void playingToggled( bool ); |
108 | void stopToggled( bool ); | 111 | void stopToggled( bool ); |
109 | void positionChanged( long ); // When the slider is moved | 112 | void positionChanged( long ); // When the slider is moved |
110 | void positionUpdated( long ); // When the media file progresses | 113 | void positionUpdated( long ); // When the media file progresses |
111 | void lengthChanged( long ); | 114 | void lengthChanged( long ); |
112 | void viewChanged( char ); | 115 | void viewChanged( char ); |
113 | void blankToggled( bool ); | 116 | void blankToggled( bool ); |
117 | void videoGammaChanged( int ); | ||
114 | void prev(); | 118 | void prev(); |
115 | void next(); | 119 | void next(); |
116 | 120 | ||
117 | private: | 121 | private: |
118 | bool isStreaming; | 122 | bool isStreaming; |
119 | bool isFullscreen; | 123 | bool isFullscreen; |
120 | bool isScaled; | 124 | bool isScaled; |
121 | bool isBlanked; | 125 | bool isBlanked; |
122 | bool isLooping; | 126 | bool isLooping; |
123 | bool isShuffled; | 127 | bool isShuffled; |
124 | bool usePlaylist; | 128 | bool usePlaylist; |
125 | long curPosition; | 129 | long curPosition; |
126 | long curLength; | 130 | long curLength; |
127 | char curView; | 131 | char curView; |
128 | 132 | int videoGamma; | |
129 | void readConfig( Config& cfg ); | 133 | void readConfig( Config& cfg ); |
130 | 134 | ||
131 | }; | 135 | }; |
132 | 136 | ||
133 | 137 | ||
134 | #endif // MEDIA_PLAYER_STATE_H | 138 | #endif // MEDIA_PLAYER_STATE_H |
135 | 139 | ||