author | simon <simon> | 2002-12-02 11:21:24 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 11:21:24 (UTC) |
commit | 5a7c8386e4d526558becf2553912eb42a42107ee (patch) (side-by-side diff) | |
tree | be3ebf33bf8cff012c25883adeda9427f4787698 /noncore/multimedia/opieplayer2/lib.h | |
parent | b2532533a8a28680db967a45090a3ba1dd53ed73 (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 38 |
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 @@ -58,67 +58,67 @@ namespace XINE { class Lib : public ThreadUtil::Channel { Q_OBJECT public: Lib(XineVideoWidget* = 0); ~Lib(); QCString version(); - int majorVersion()/*const*/; - int minorVersion()/*const*/; - int subVersion()/*const*/; + static int majorVersion(); + static int minorVersion(); + static int subVersion(); void resize ( const QSize &s ); int play( const QString& fileName, int startPos = 0, int start_time = 0 ); - void stop() /*const*/; - void pause()/*const*/; + void stop(); + void pause(); - int speed() /*const*/; + int speed() const; /** * Set the speed of the stream, if codec supports it * XINE_SPEED_PAUSE 0 * XINE_SPEED_SLOW_4 1 * XINE_SPEED_SLOW_2 2 * XINE_SPEED_NORMAL 4 * XINE_SPEED_FAST_2 8 *XINE_SPEED_FAST_4 16 */ void setSpeed( int speed = XINE_SPEED_PAUSE ); - int status() /*const*/; + int status() const; - int currentPosition()/*const*/; + int currentPosition()const; //in seconds - int currentTime()/*const*/; + int currentTime()const; - int length() /*const*/; + int length() const; - bool isSeekable()/*const*/; + bool isSeekable()const; /** * Whether or not to show video output */ void setShowVideo(bool video); /** * is we show video */ - bool isShowingVideo() /*const*/; + bool isShowingVideo() const; /** * */ void showVideoFullScreen( bool fullScreen ); /** * */ - bool isVideoFullScreen()/*const*/ ; + bool isVideoFullScreen() const; /** * Get the meta info (like author etc) from the stream * XINE_META_INFO_TITLE 0 * XINE_META_INFO_COMMENT 1 @@ -128,29 +128,29 @@ namespace XINE { * XINE_META_INFO_YEAR 5 * XINE_META_INFO_VIDEOCODEC 6 * XINE_META_INFO_AUDIOCODEC 7 * XINE_META_INFO_SYSTEMLAYER 8 * XINE_META_INFO_INPUT_PLUGIN 9 */ - QString metaInfo( int number ); + QString metaInfo( int number ) const; /** * */ - bool isScaling(); + bool isScaling() const; /** * seek to a position */ void seekTo( int time ); /** * * @return is media stream has video */ - bool hasVideo(); + bool hasVideo() const; /** * */ void setScaling( bool ); @@ -160,34 +160,32 @@ namespace XINE { */ void setGamma( int ); /** * test */ - Frame currentFrame()/*const*/; + Frame currentFrame() const; /** * Returns the error code * XINE_ERROR_NONE 0 * XINE_ERROR_NO_INPUT_PLUGIN 1 * XINE_ERROR_NO_DEMUXER_PLUGIN 2 * XINE_ERROR_DEMUXER_FAILED 3 */ - int error() /*const*/; + int error() const; signals: void stopped(); protected: virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); private: int m_bytes_per_pixel; - int m_length, m_pos, m_time; - int m_major_version, m_minor_version, m_sub_version; bool m_video:1; XineVideoWidget *m_wid; xine_t *m_xine; xine_stream_t *m_stream; xine_cfg_entry_t *m_config; xine_vo_driver_t *m_videoOutput; |