author | simon <simon> | 2002-12-02 19:29:34 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 19:29:34 (UTC) |
commit | af73e44e57b1095f92b6f6bcd530c2e4b626a664 (patch) (unidiff) | |
tree | f4178ea80b26bec9955e4c529d3b0c92301b08a8 /noncore/multimedia/opieplayer2/xinecontrol.cpp | |
parent | 24081d2efe5860c9656716b04af00e5ab85d1cd3 (diff) | |
download | opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.zip opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.tar.gz opie-af73e44e57b1095f92b6f6bcd530c2e4b626a664.tar.bz2 |
- completed MediaPlayer::DisplayType transition
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 71e08a6..e7d5a7b 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -87,6 +87,6 @@ void XineControl::play( const QString& fileName ) { | |||
87 | 87 | ||
88 | char whichGui; | 88 | MediaPlayerState::DisplayType displayType; |
89 | // qDebug( QString( "libXine->hasVideo() return : %1 ").arg( libXine->hasVideo() ) ); | 89 | // qDebug( QString( "libXine->hasVideo() return : %1 ").arg( libXine->hasVideo() ) ); |
90 | if ( !libXine->hasVideo() ) { | 90 | if ( !libXine->hasVideo() ) { |
91 | whichGui = 'a'; | 91 | displayType = MediaPlayerState::Audio; |
92 | qDebug("HAS AUDIO"); | 92 | qDebug("HAS AUDIO"); |
@@ -95,3 +95,3 @@ void XineControl::play( const QString& fileName ) { | |||
95 | } else { | 95 | } else { |
96 | whichGui = 'v'; | 96 | displayType = MediaPlayerState::Video; |
97 | qDebug("HAS VIDEO"); | 97 | qDebug("HAS VIDEO"); |
@@ -104,3 +104,3 @@ void XineControl::play( const QString& fileName ) { | |||
104 | // which gui (video / audio) | 104 | // which gui (video / audio) |
105 | mediaPlayerState->setView( whichGui ); | 105 | mediaPlayerState->setDisplayType( displayType ); |
106 | 106 | ||
@@ -111,3 +111,3 @@ void XineControl::play( const QString& fileName ) { | |||
111 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) | 111 | QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) |
112 | << ( whichGui == 'v' ? QPEApplication::Disable : QPEApplication::DisableSuspend ); | 112 | << ( displayType == MediaPlayerState::Video ? QPEApplication::Disable : QPEApplication::DisableSuspend ); |
113 | } | 113 | } |