1 #ifndef BROWSEDIRECTORYITEM_H_
2 #define BROWSEDIRECTORYITEM_H_
6 class XinemaControlItem;
8 class BrowseDirectoryItem: public QQuickItem
12 Q_PROPERTY(XinemaControlItem *control READ get_control WRITE set_control NOTIFY control_changed)
13 Q_PROPERTY(QString directory READ get_directory WRITE set_directory NOTIFY directory_changed)
14 Q_PROPERTY(QStringList subdirectories READ get_subdirectories NOTIFY subdirectories_changed)
15 Q_PROPERTY(QStringList files READ get_files NOTIFY files_changed)
18 XinemaControlItem *control;
20 QStringList subdirectories;
24 BrowseDirectoryItem();
26 void set_control(XinemaControlItem *);
27 XinemaControlItem *get_control() const { return control; }
29 void set_directory(const QString &);
30 const QString &get_directory() const { return directory; }
32 const QStringList &get_subdirectories() const { return subdirectories; }
33 const QStringList &get_files() const { return files; }
36 void control_changed();
37 void directory_changed();
38 void subdirectories_changed();
42 void directory_started(const QString &);
43 void file_added(const QString &);
44 void subdirectory_added(const QString &);