1 #ifndef STREAMCONTROLITEM_H_
2 #define STREAMCONTROLITEM_H_
6 class XinemaControlItem;
8 class StreamControlItem: public QQuickItem
12 Q_PROPERTY(XinemaControlItem *control READ get_control WRITE set_control NOTIFY control_changed)
13 Q_PROPERTY(QString title READ get_title NOTIFY title_changed)
14 Q_PROPERTY(float duration READ get_duration NOTIFY duration_changed)
15 Q_PROPERTY(float position READ get_position NOTIFY position_changed)
18 XinemaControlItem *control;
23 void set_control(XinemaControlItem *);
24 XinemaControlItem *get_control() const { return control; }
26 QString get_title() const;
27 float get_duration() const;
28 float get_position() const;
31 void control_changed();
33 void duration_changed();
34 void position_changed();