Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 9b5f70e..d1d30e4 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |||
@@ -1,52 +1,44 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | 3 | ||
4 | #include <qpe/qpeapplication.h> | 4 | #include <qpe/qpeapplication.h> |
5 | #include <qpe/qlibrary.h> | 5 | #include <qpe/qlibrary.h> |
6 | #include <qpe/config.h> | 6 | #include <qpe/config.h> |
7 | #include <qvaluelist.h> | 7 | #include <qvaluelist.h> |
8 | #include <qobject.h> | 8 | #include <qobject.h> |
9 | #include <qdir.h> | 9 | #include <qdir.h> |
10 | #include <qpe/mediaplayerplugininterface.h> | 10 | #include <qpe/mediaplayerplugininterface.h> |
11 | #include "mediaplayerstate.h" | 11 | #include "mediaplayerstate.h" |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | #ifdef QT_NO_COMPONENT | ||
16 | // Plugins which are compiled in when no plugin architecture available | ||
17 | #include "libmad/libmadpluginimpl.h" | ||
18 | #include "libmpeg3/libmpeg3pluginimpl.h" | ||
19 | #include "wavplugin/wavpluginimpl.h" | ||
20 | #endif | ||
21 | |||
22 | |||
23 | //#define MediaPlayerDebug(x) qDebug x | 15 | //#define MediaPlayerDebug(x) qDebug x |
24 | #define MediaPlayerDebug(x) | 16 | #define MediaPlayerDebug(x) |
25 | 17 | ||
26 | 18 | ||
27 | MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) | 19 | MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) |
28 | : QObject( parent, name ), decoder( NULL ), libmpeg3decoder( NULL ) { | 20 | : QObject( parent, name ), decoder( NULL ) { |
29 | Config cfg( "OpiePlayer" ); | 21 | Config cfg( "OpiePlayer" ); |
30 | readConfig( cfg ); | 22 | readConfig( cfg ); |
31 | } | 23 | } |
32 | 24 | ||
33 | 25 | ||
34 | MediaPlayerState::~MediaPlayerState() { | 26 | MediaPlayerState::~MediaPlayerState() { |
35 | Config cfg( "OpiePlayer" ); | 27 | Config cfg( "OpiePlayer" ); |
36 | writeConfig( cfg ); | 28 | writeConfig( cfg ); |
37 | } | 29 | } |
38 | 30 | ||
39 | 31 | ||
40 | void MediaPlayerState::readConfig( Config& cfg ) { | 32 | void MediaPlayerState::readConfig( Config& cfg ) { |
41 | cfg.setGroup("Options"); | 33 | cfg.setGroup("Options"); |
42 | isFullscreen = cfg.readBoolEntry( "FullScreen" ); | 34 | isFullscreen = cfg.readBoolEntry( "FullScreen" ); |
43 | isScaled = cfg.readBoolEntry( "Scaling" ); | 35 | isScaled = cfg.readBoolEntry( "Scaling" ); |
44 | isLooping = cfg.readBoolEntry( "Looping" ); | 36 | isLooping = cfg.readBoolEntry( "Looping" ); |
45 | isShuffled = cfg.readBoolEntry( "Shuffle" ); | 37 | isShuffled = cfg.readBoolEntry( "Shuffle" ); |
46 | usePlaylist = cfg.readBoolEntry( "UsePlayList" ); | 38 | usePlaylist = cfg.readBoolEntry( "UsePlayList" ); |
47 | usePlaylist = TRUE; | 39 | usePlaylist = TRUE; |
48 | isPlaying = FALSE; | 40 | isPlaying = FALSE; |
49 | isPaused = FALSE; | 41 | isPaused = FALSE; |
50 | curPosition = 0; | 42 | curPosition = 0; |
51 | curLength = 0; | 43 | curLength = 0; |
52 | curView = 'l'; | 44 | curView = 'l'; |