author | simon <simon> | 2002-12-02 13:47:30 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 13:47:30 (UTC) |
commit | 62f60ab5bb344ec3a5ac6f2486c460a0f11a9f69 (patch) (unidiff) | |
tree | 77d75fb5fa33d1dd064d739c64dc55d0b7fb8999 | |
parent | 1646c471d8a1f54df65c8d58402bc80af004f498 (diff) | |
download | opie-62f60ab5bb344ec3a5ac6f2486c460a0f11a9f69.zip opie-62f60ab5bb344ec3a5ac6f2486c460a0f11a9f69.tar.gz opie-62f60ab5bb344ec3a5ac6f2486c460a0f11a9f69.tar.bz2 |
- made the accessor functions inline
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 57 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 26 |
2 files changed, 13 insertions, 70 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 85d9bac..0d21027 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |||
@@ -83,73 +83,16 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { | |||
83 | cfg.writeEntry( "FullScreen", fullscreen ); | 83 | cfg.writeEntry( "FullScreen", fullscreen ); |
84 | cfg.writeEntry( "Scaling", scaled ); | 84 | cfg.writeEntry( "Scaling", scaled ); |
85 | cfg.writeEntry( "Looping", looping ); | 85 | cfg.writeEntry( "Looping", looping ); |
86 | cfg.writeEntry( "Shuffle", shuffled ); | 86 | cfg.writeEntry( "Shuffle", shuffled ); |
87 | cfg.writeEntry( "UsePlayList", usePlaylist ); | 87 | cfg.writeEntry( "UsePlayList", usePlaylist ); |
88 | cfg.writeEntry( "VideoGamma", videoGamma ); | 88 | cfg.writeEntry( "VideoGamma", videoGamma ); |
89 | } | 89 | } |
90 | 90 | ||
91 | |||
92 | // public stuff | ||
93 | |||
94 | |||
95 | bool MediaPlayerState::isStreaming() const { | ||
96 | return streaming; | ||
97 | } | ||
98 | |||
99 | bool MediaPlayerState::isSeekable() const { | ||
100 | return seekable; | ||
101 | } | ||
102 | |||
103 | bool MediaPlayerState::isFullscreen() const { | ||
104 | return fullscreen; | ||
105 | } | ||
106 | |||
107 | bool MediaPlayerState::isScaled() const { | ||
108 | return scaled; | ||
109 | } | ||
110 | |||
111 | bool MediaPlayerState::isLooping() const { | ||
112 | return looping; | ||
113 | } | ||
114 | |||
115 | bool MediaPlayerState::isShuffled() const { | ||
116 | return shuffled; | ||
117 | } | ||
118 | |||
119 | |||
120 | bool MediaPlayerState::isUsingPlaylist() const { | ||
121 | return usePlaylist; | ||
122 | } | ||
123 | |||
124 | bool MediaPlayerState::isPaused() const { | ||
125 | return paused; | ||
126 | } | ||
127 | |||
128 | bool MediaPlayerState::isPlaying() const { | ||
129 | return playing; | ||
130 | } | ||
131 | |||
132 | bool MediaPlayerState::isStop() const { | ||
133 | return stoped; | ||
134 | } | ||
135 | |||
136 | long MediaPlayerState::position() const { | ||
137 | return curPosition; | ||
138 | } | ||
139 | |||
140 | long MediaPlayerState::length() const { | ||
141 | return curLength; | ||
142 | } | ||
143 | |||
144 | char MediaPlayerState::view() const { | ||
145 | return curView; | ||
146 | } | ||
147 | |||
148 | // slots | 91 | // slots |
149 | void MediaPlayerState::setIsStreaming( bool b ) { | 92 | void MediaPlayerState::setIsStreaming( bool b ) { |
150 | 93 | ||
151 | if ( streaming == b ) { | 94 | if ( streaming == b ) { |
152 | return; | 95 | return; |
153 | } | 96 | } |
154 | streaming = b; | 97 | streaming = b; |
155 | } | 98 | } |
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index 4e837e3..57189dd 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -45,29 +45,29 @@ 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 | MediaPlayerState( QObject *parent, const char *name ); | 50 | MediaPlayerState( QObject *parent, const char *name ); |
51 | ~MediaPlayerState(); | 51 | ~MediaPlayerState(); |
52 | 52 | ||
53 | bool isStreaming() const; | 53 | bool isStreaming() const { return streaming; } |
54 | bool isSeekable() const; | 54 | bool isSeekable() const { return seekable; } |
55 | bool isFullscreen() const; | 55 | bool isFullscreen() const { return fullscreen; } |
56 | bool isScaled() const; | 56 | bool isScaled() const { return scaled; } |
57 | bool isLooping() const; | 57 | bool isLooping() const { return looping; } |
58 | bool isShuffled() const; | 58 | bool isShuffled() const { return shuffled; } |
59 | bool isUsingPlaylist() const; | 59 | bool isUsingPlaylist() const { return usePlaylist; } |
60 | bool isPaused() const; | 60 | bool isPaused() const { return paused; } |
61 | bool isPlaying() const; | 61 | bool isPlaying() const { return playing; } |
62 | bool isStop() const; | 62 | bool isStop() const { return stoped; } |
63 | long position() const; | 63 | long position() const { return curPosition; } |
64 | long length() const; | 64 | long length() const { return curLength; } |
65 | char view() const; | 65 | char view() const { return curView; } |
66 | 66 | ||
67 | public slots: | 67 | public slots: |
68 | void setIsStreaming( bool b ); | 68 | void setIsStreaming( bool b ); |
69 | void setIsSeekable( bool b ); | 69 | void setIsSeekable( bool b ); |
70 | void setFullscreen( bool b ); | 70 | void setFullscreen( bool b ); |
71 | void setScaled( bool b ); | 71 | void setScaled( bool b ); |
72 | void setLooping( bool b ); | 72 | void setLooping( bool b ); |
73 | void setShuffled( bool b ); | 73 | void setShuffled( bool b ); |