X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fsource%2Fstreamcontrolitem.h;fp=remote%2Fsource%2Fstreamcontrolitem.h;h=5b9b2bc0bac7111ce66ef1802468e7edee4e16e4;hb=6fd809bbdbfe628ef1e63b68665f374751838baf;hp=0000000000000000000000000000000000000000;hpb=ed777426d367df15a67082f5dae0911c21472b5f;p=xinema.git diff --git a/remote/source/streamcontrolitem.h b/remote/source/streamcontrolitem.h new file mode 100644 index 0000000..5b9b2bc --- /dev/null +++ b/remote/source/streamcontrolitem.h @@ -0,0 +1,37 @@ +#ifndef STREAMCONTROLITEM_H_ +#define STREAMCONTROLITEM_H_ + +#include + +class XinemaControlItem; + +class StreamControlItem: public QQuickItem +{ + Q_OBJECT + + Q_PROPERTY(XinemaControlItem *control READ get_control WRITE set_control NOTIFY control_changed) + 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 NOTIFY position_changed) + +private: + XinemaControlItem *control; + +public: + StreamControlItem(); + + void set_control(XinemaControlItem *); + XinemaControlItem *get_control() const { return control; } + + QString get_title() const; + float get_duration() const; + float get_position() const; + +signals: + void control_changed(); + void title_changed(); + void duration_changed(); + void position_changed(); +}; + +#endif