]> git.tdb.fi Git - xinema.git/blob - remote/source/streamcontrolitem.h
5b9b2bc0bac7111ce66ef1802468e7edee4e16e4
[xinema.git] / remote / source / streamcontrolitem.h
1 #ifndef STREAMCONTROLITEM_H_
2 #define STREAMCONTROLITEM_H_
3
4 #include <QQuickItem>
5
6 class XinemaControlItem;
7
8 class StreamControlItem: public QQuickItem
9 {
10         Q_OBJECT
11
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)
16
17 private:
18         XinemaControlItem *control;
19
20 public:
21         StreamControlItem();
22
23         void set_control(XinemaControlItem *);
24         XinemaControlItem *get_control() const { return control; }
25
26         QString get_title() const;
27         float get_duration() const;
28         float get_position() const;
29
30 signals:
31         void control_changed();
32         void title_changed();
33         void duration_changed();
34         void position_changed();
35 };
36
37 #endif