summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediaplayerstate.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h
index dbbb0f2..20e3552 100644
--- a/noncore/multimedia/opieplayer2/mediaplayerstate.h
+++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h
@@ -13,32 +13,35 @@ class Config;
13class MediaPlayerState : public QObject { 13class MediaPlayerState : public QObject {
14Q_OBJECT 14Q_OBJECT
15public: 15public:
16 MediaPlayerState( QObject *parent, const char *name ); 16 MediaPlayerState( QObject *parent, const char *name );
17 ~MediaPlayerState(); 17 ~MediaPlayerState();
18 18
19 bool isStreaming; 19 bool streaming();
20 bool fullscreen(); 20 bool fullscreen();
21 bool scaled(); 21 bool scaled();
22 bool looping(); 22 bool looping();
23 bool shuffled(); 23 bool shuffled();
24 bool playlist(); 24 bool playlist();
25 bool paused(); 25 bool paused();
26 bool playing(); 26 bool playing();
27 bool stop();
27 long position(); 28 long position();
28 long length(); 29 long length();
29 char view(); 30 char view();
30 31
31public slots: 32public slots:
33 void setIsStreaming( bool b );
32 void setFullscreen( bool b ); 34 void setFullscreen( bool b );
33 void setScaled( bool b ); 35 void setScaled( bool b );
34 void setLooping( bool b ); 36 void setLooping( bool b );
35 void setShuffled( bool b ); 37 void setShuffled( bool b );
36 void setPlaylist( bool b ); 38 void setPlaylist( bool b );
37 void setPaused( bool b ); 39 void setPaused( bool b );
38 void setPlaying( bool b ); 40 void setPlaying( bool b );
41 void setStop( bool b );
39 void setPosition( long p ); 42 void setPosition( long p );
40 void updatePosition( long p ); 43 void updatePosition( long p );
41 void setLength( long l ); 44 void setLength( long l );
42 void setView( char v ); 45 void setView( char v );
43 46
44 void setPrev(); 47 void setPrev();
@@ -60,28 +63,31 @@ signals:
60 void scaledToggled( bool ); 63 void scaledToggled( bool );
61 void loopingToggled( bool ); 64 void loopingToggled( bool );
62 void shuffledToggled( bool ); 65 void shuffledToggled( bool );
63 void playlistToggled( bool ); 66 void playlistToggled( bool );
64 void pausedToggled( bool ); 67 void pausedToggled( bool );
65 void playingToggled( bool ); 68 void playingToggled( bool );
69 void stopToggled( bool );
66 void positionChanged( long ); // When the slider is moved 70 void positionChanged( long ); // When the slider is moved
67 void positionUpdated( long ); // When the media file progresses 71 void positionUpdated( long ); // When the media file progresses
68 void lengthChanged( long ); 72 void lengthChanged( long );
69 void viewChanged( char ); 73 void viewChanged( char );
70 74
71 void prev(); 75 void prev();
72 void next(); 76 void next();
73 77
74private: 78private:
79 bool isStreaming;
75 bool isFullscreen; 80 bool isFullscreen;
76 bool isScaled; 81 bool isScaled;
77 bool isLooping; 82 bool isLooping;
78 bool isShuffled; 83 bool isShuffled;
79 bool usePlaylist; 84 bool usePlaylist;
80 bool isPaused; 85 bool isPaused;
81 bool isPlaying; 86 bool isPlaying;
87 bool isStoped;
82 long curPosition; 88 long curPosition;
83 long curLength; 89 long curLength;
84 char curView; 90 char curView;
85 91
86 void readConfig( Config& cfg ); 92 void readConfig( Config& cfg );
87 void writeConfig( Config& cfg ) const; 93 void writeConfig( Config& cfg ) const;