X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fsource%2Fstreamcontrolitem.h;h=be7bcc869c69256bfb7883e2c1b0ec35d71a8960;hb=9050978f3b1c47e5dd64380637eb3a430bbe7a4c;hp=cb08836c69ca0a21327832057069202b5405020d;hpb=4dd3070fa50882b7ec7a26f7d0994c064c6b29d6;p=xinema.git diff --git a/remote/source/streamcontrolitem.h b/remote/source/streamcontrolitem.h index cb08836..be7bcc8 100644 --- a/remote/source/streamcontrolitem.h +++ b/remote/source/streamcontrolitem.h @@ -15,6 +15,14 @@ class StreamControlItem: public QQuickItem Q_PROPERTY(QString title READ get_title NOTIFY title_changed) Q_PROPERTY(float duration READ get_duration NOTIFY duration_changed) Q_PROPERTY(float position READ get_position WRITE set_position NOTIFY position_changed) + Q_PROPERTY(QSize videoSize READ get_video_size NOTIFY size_changed) + Q_PROPERTY(float framerate READ get_framerate NOTIFY framerate_changed) + Q_PROPERTY(QString videoCodec READ get_video_codec NOTIFY codecs_changed) + Q_PROPERTY(QString audioCodec READ get_audio_codec NOTIFY codecs_changed) + Q_PROPERTY(QStringList audioChannels READ get_audio_channels NOTIFY channels_changed) + Q_PROPERTY(QStringList spuChannels READ get_spu_channels NOTIFY channels_changed) + Q_PROPERTY(int currentAudioChannel READ get_current_audio_channel WRITE select_audio_channel NOTIFY current_audio_channel_changed) + Q_PROPERTY(int currentSpuChannel READ get_current_spu_channel WRITE select_spu_channel NOTIFY current_spu_channel_changed) Q_ENUMS(PlaybackState) @@ -41,6 +49,16 @@ public: float get_duration() const; void set_position(float); float get_position() const; + QSize get_video_size() const; + float get_framerate() const; + QString get_video_codec() const; + QString get_audio_codec() const; + QStringList get_audio_channels() const; + QStringList get_spu_channels() const; + void select_audio_channel(int); + void select_spu_channel(int); + int get_current_audio_channel() const; + int get_current_spu_channel() const; signals: void control_changed(); @@ -48,6 +66,15 @@ signals: void title_changed(); void duration_changed(); void position_changed(); + void size_changed(); + void framerate_changed(); + void codecs_changed(); + void channels_changed(); + void current_audio_channel_changed(); + void current_spu_channel_changed(); + +private slots: + void control_channels_changed(); }; #endif