1 #include "streamcontrolitem.h"
2 #include "xinemacontrolitem.h"
4 StreamControlItem::StreamControlItem():
9 void StreamControlItem::set_control(XinemaControlItem *c)
12 disconnect(control, 0, this, 0);
17 XinemaControl &xc = control->get_control();
18 connect(&xc, &XinemaControl::title_changed, this, &StreamControlItem::title_changed);
19 connect(&xc, &XinemaControl::duration_changed, this, &StreamControlItem::duration_changed);
20 connect(&xc, &XinemaControl::position_changed, this, &StreamControlItem::position_changed);
23 emit control_changed();
28 emit duration_changed();
29 emit position_changed();
33 QString StreamControlItem::get_title() const
38 return control->get_control().get_title();
41 float StreamControlItem::get_duration() const
46 return control->get_control().get_duration();
49 float StreamControlItem::get_position() const
54 return control->get_control().get_position();