summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
authorsimon <simon>2002-12-02 11:21:24 (UTC)
committer simon <simon>2002-12-02 11:21:24 (UTC)
commit5a7c8386e4d526558becf2553912eb42a42107ee (patch) (unidiff)
treebe3ebf33bf8cff012c25883adeda9427f4787698 /noncore/multimedia/opieplayer2/lib.h
parentb2532533a8a28680db967a45090a3ba1dd53ed73 (diff)
downloadopie-5a7c8386e4d526558becf2553912eb42a42107ee.zip
opie-5a7c8386e4d526558becf2553912eb42a42107ee.tar.gz
opie-5a7c8386e4d526558becf2553912eb42a42107ee.tar.bz2
- made the version functions static and some other functions constant that
are constant by design
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index 75b9f12..a7e51fb 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -61,9 +61,9 @@ namespace XINE {
61 Lib(XineVideoWidget* = 0); 61 Lib(XineVideoWidget* = 0);
62 ~Lib(); 62 ~Lib();
63 QCString version(); 63 QCString version();
64 int majorVersion()/*const*/; 64 static int majorVersion();
65 int minorVersion()/*const*/; 65 static int minorVersion();
66 int subVersion()/*const*/; 66 static int subVersion();
67 67
68 68
69 void resize ( const QSize &s ); 69 void resize ( const QSize &s );
@@ -71,10 +71,10 @@ namespace XINE {
71 int play( const QString& fileName, 71 int play( const QString& fileName,
72 int startPos = 0, 72 int startPos = 0,
73 int start_time = 0 ); 73 int start_time = 0 );
74 void stop() /*const*/; 74 void stop();
75 void pause()/*const*/; 75 void pause();
76 76
77 int speed() /*const*/; 77 int speed() const;
78 78
79 /** 79 /**
80 * Set the speed of the stream, if codec supports it 80 * Set the speed of the stream, if codec supports it
@@ -87,15 +87,15 @@ namespace XINE {
87 */ 87 */
88 void setSpeed( int speed = XINE_SPEED_PAUSE ); 88 void setSpeed( int speed = XINE_SPEED_PAUSE );
89 89
90 int status() /*const*/; 90 int status() const;
91 91
92 int currentPosition()/*const*/; 92 int currentPosition()const;
93 //in seconds 93 //in seconds
94 int currentTime()/*const*/; 94 int currentTime()const;
95 95
96 int length() /*const*/; 96 int length() const;
97 97
98 bool isSeekable()/*const*/; 98 bool isSeekable()const;
99 99
100 /** 100 /**
101 * Whether or not to show video output 101 * Whether or not to show video output
@@ -105,7 +105,7 @@ namespace XINE {
105 /** 105 /**
106 * is we show video 106 * is we show video
107 */ 107 */
108 bool isShowingVideo() /*const*/; 108 bool isShowingVideo() const;
109 109
110 /** 110 /**
111 * 111 *
@@ -115,7 +115,7 @@ namespace XINE {
115 /** 115 /**
116 * 116 *
117 */ 117 */
118 bool isVideoFullScreen()/*const*/ ; 118 bool isVideoFullScreen() const;
119 119
120 120
121 /** 121 /**
@@ -131,12 +131,12 @@ namespace XINE {
131 * XINE_META_INFO_SYSTEMLAYER 8 131 * XINE_META_INFO_SYSTEMLAYER 8
132 * XINE_META_INFO_INPUT_PLUGIN 9 132 * XINE_META_INFO_INPUT_PLUGIN 9
133 */ 133 */
134 QString metaInfo( int number ); 134 QString metaInfo( int number ) const;
135 135
136 /** 136 /**
137 * 137 *
138 */ 138 */
139 bool isScaling(); 139 bool isScaling() const;
140 140
141 /** 141 /**
142 * seek to a position 142 * seek to a position
@@ -147,7 +147,7 @@ namespace XINE {
147 * 147 *
148 * @return is media stream has video 148 * @return is media stream has video
149 */ 149 */
150 bool hasVideo(); 150 bool hasVideo() const;
151 151
152 /** 152 /**
153 * 153 *
@@ -163,7 +163,7 @@ namespace XINE {
163 /** 163 /**
164 * test 164 * test
165 */ 165 */
166 Frame currentFrame()/*const*/; 166 Frame currentFrame() const;
167 167
168 /** 168 /**
169 * Returns the error code 169 * Returns the error code
@@ -172,7 +172,7 @@ namespace XINE {
172 * XINE_ERROR_NO_DEMUXER_PLUGIN 2 172 * XINE_ERROR_NO_DEMUXER_PLUGIN 2
173 * XINE_ERROR_DEMUXER_FAILED 3 173 * XINE_ERROR_DEMUXER_FAILED 3
174 */ 174 */
175 int error() /*const*/; 175 int error() const;
176 176
177 signals: 177 signals:
178 178
@@ -183,8 +183,6 @@ namespace XINE {
183 183
184 private: 184 private:
185 int m_bytes_per_pixel; 185 int m_bytes_per_pixel;
186 int m_length, m_pos, m_time;
187 int m_major_version, m_minor_version, m_sub_version;
188 bool m_video:1; 186 bool m_video:1;
189 XineVideoWidget *m_wid; 187 XineVideoWidget *m_wid;
190 xine_t *m_xine; 188 xine_t *m_xine;