summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
authorharlekin <harlekin>2002-07-09 01:02:37 (UTC)
committer harlekin <harlekin>2002-07-09 01:02:37 (UTC)
commit577841e20b5657411194d74a143b0319fc05cda3 (patch) (side-by-side diff)
tree0e41da19fff8e2f47d43612a96d503b49b6a6a0b /noncore/multimedia/opieplayer2/mediaplayerstate.cpp
parent56554891922367c5d4e7d0f6965daa1026c0cc54 (diff)
downloadopie-577841e20b5657411194d74a143b0319fc05cda3.zip
opie-577841e20b5657411194d74a143b0319fc05cda3.tar.gz
opie-577841e20b5657411194d74a143b0319fc05cda3.tar.bz2
more gui updates
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp29
1 files changed, 27 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
index 3090b08..778cd1e 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
@@ -53,12 +53,18 @@ void MediaPlayerState::writeConfig( Config& cfg ) const {
}
// public stuff
+
+
+bool MediaPlayerState::streaming() {
+ return isStreaming;
+}
+
bool MediaPlayerState::fullscreen() {
return isFullscreen;
}
bool MediaPlayerState::scaled() {
return isScaled;
@@ -82,12 +88,16 @@ bool MediaPlayerState::paused() {
}
bool MediaPlayerState::playing() {
return isPlaying;
}
+bool MediaPlayerState::stop() {
+ return isStoped;
+}
+
long MediaPlayerState::position() {
return curPosition;
}
long MediaPlayerState::length() {
return curLength;
@@ -95,12 +105,20 @@ long MediaPlayerState::length() {
char MediaPlayerState::view() {
return curView;
}
// slots
+void MediaPlayerState::setIsStreaming( bool b ) {
+ if ( isStreaming == b ) {
+ return;
+ }
+ isStreaming = b;
+}
+
+
void MediaPlayerState::setFullscreen( bool b ) {
if ( isFullscreen == b ) {
return;
}
isFullscreen = b;
emit fullscreenToggled(b);
@@ -149,15 +167,24 @@ void MediaPlayerState::setPaused( bool b ) {
void MediaPlayerState::setPlaying( bool b ) {
if ( isPlaying == b ) {
return;
}
isPlaying = b;
+ isStoped = !b;
emit playingToggled(b);
}
+void MediaPlayerState::setStop( bool b ) {
+ if ( isStoped == b ) {
+ return;
+ }
+ isStoped = b;
+ emit stopToggled(b);
+}
+
void MediaPlayerState::setPosition( long p ) {
if ( curPosition == p ) {
return;
}
curPosition = p;
emit positionChanged(p);
@@ -205,14 +232,12 @@ void MediaPlayerState::setVideo() {
}
void MediaPlayerState::setAudio() {
setView('a');
}
-
-
void MediaPlayerState::toggleFullscreen() {
setFullscreen( !isFullscreen );
}
void MediaPlayerState::toggleScaled() {
setScaled( !isScaled);