author | simon <simon> | 2002-12-02 18:34:02 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 18:34:02 (UTC) |
commit | cf6d2e032faac6fbaeb9c5730767fc25021045fe (patch) (unidiff) | |
tree | 4a75af0170fec6b140ddf9ba7a2776f8e5a6427a /noncore/multimedia/opieplayer2/mediaplayerstate.h | |
parent | 2aa2e01cd678012d4b28365c9c765a2076f64a3b (diff) | |
download | opie-cf6d2e032faac6fbaeb9c5730767fc25021045fe.zip opie-cf6d2e032faac6fbaeb9c5730767fc25021045fe.tar.gz opie-cf6d2e032faac6fbaeb9c5730767fc25021045fe.tar.bz2 |
- oops, realized it's not MediaType but rather DisplayType
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 05264cf..ca531c5 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -38,42 +38,42 @@ | |||
38 | 38 | ||
39 | 39 | ||
40 | #include <qobject.h> | 40 | #include <qobject.h> |
41 | 41 | ||
42 | 42 | ||
43 | class MediaPlayerDecoder; | 43 | class MediaPlayerDecoder; |
44 | class Config; | 44 | class Config; |
45 | 45 | ||
46 | 46 | ||
47 | class MediaPlayerState : public QObject { | 47 | class MediaPlayerState : public QObject { |
48 | Q_OBJECT | 48 | Q_OBJECT |
49 | public: | 49 | public: |
50 | enum MediaType { Audio, Video }; | 50 | enum DisplayType { Audio, Video, MediaSelection }; |
51 | 51 | ||
52 | MediaPlayerState( QObject *parent, const char *name ); | 52 | MediaPlayerState( QObject *parent, const char *name ); |
53 | ~MediaPlayerState(); | 53 | ~MediaPlayerState(); |
54 | 54 | ||
55 | bool isStreaming() const { return streaming; } | 55 | bool isStreaming() const { return streaming; } |
56 | bool isSeekable() const { return seekable; } | 56 | bool isSeekable() const { return seekable; } |
57 | bool isFullscreen() const { return fullscreen; } | 57 | bool isFullscreen() const { return fullscreen; } |
58 | bool isScaled() const { return scaled; } | 58 | bool isScaled() const { return scaled; } |
59 | bool isLooping() const { return looping; } | 59 | bool isLooping() const { return looping; } |
60 | bool isShuffled() const { return shuffled; } | 60 | bool isShuffled() const { return shuffled; } |
61 | bool isPaused() const { return paused; } | 61 | bool isPaused() const { return paused; } |
62 | bool isPlaying() const { return playing; } | 62 | bool isPlaying() const { return playing; } |
63 | bool isStopped() const { return stopped; } | 63 | bool isStopped() const { return stopped; } |
64 | long position() const { return curPosition; } | 64 | long position() const { return curPosition; } |
65 | long length() const { return curLength; } | 65 | long length() const { return curLength; } |
66 | char view() const { return curView; } | 66 | char view() const { return curView; } |
67 | MediaType mediaType() const; | 67 | DisplayType displayType() const; |
68 | 68 | ||
69 | public slots: | 69 | public slots: |
70 | void setIsStreaming( bool b ); | 70 | void setIsStreaming( bool b ); |
71 | void setIsSeekable( bool b ); | 71 | void setIsSeekable( bool b ); |
72 | void setFullscreen( bool b ); | 72 | void setFullscreen( bool b ); |
73 | void setScaled( bool b ); | 73 | void setScaled( bool b ); |
74 | void setLooping( bool b ); | 74 | void setLooping( bool b ); |
75 | void setShuffled( bool b ); | 75 | void setShuffled( bool b ); |
76 | void setPaused( bool b ); | 76 | void setPaused( bool b ); |
77 | void setPlaying( bool b ); | 77 | void setPlaying( bool b ); |
78 | void setStopped( bool b ); | 78 | void setStopped( bool b ); |
79 | void setPosition( long p ); | 79 | void setPosition( long p ); |
@@ -102,25 +102,25 @@ public slots: | |||
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 pausedToggled( bool ); | 107 | void pausedToggled( bool ); |
108 | void playingToggled( bool ); | 108 | void playingToggled( bool ); |
109 | void stopToggled( bool ); | 109 | void stopToggled( bool ); |
110 | void positionChanged( long ); // When the slider is moved | 110 | void positionChanged( long ); // When the slider is moved |
111 | void positionUpdated( long ); // When the media file progresses | 111 | void positionUpdated( long ); // When the media file progresses |
112 | void lengthChanged( long ); | 112 | void lengthChanged( long ); |
113 | void viewChanged( char ); | 113 | void viewChanged( char ); |
114 | void mediaTypeChanged( MediaPlayerState::MediaType type ); | 114 | void displayTypeChanged( MediaPlayerState::DisplayType type ); |
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 : 1; | 122 | bool streaming : 1; |
123 | bool seekable : 1; | 123 | bool seekable : 1; |
124 | bool fullscreen: 1; | 124 | bool fullscreen: 1; |
125 | bool scaled : 1; | 125 | bool scaled : 1; |
126 | bool blanked : 1; | 126 | bool blanked : 1; |