-
Notifications
You must be signed in to change notification settings - Fork 0
/
gstreamerlogwidget.h
36 lines (29 loc) · 973 Bytes
/
gstreamerlogwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef GSTREAMERLOGWIDGET_H
#define GSTREAMERLOGWIDGET_H
#include <QtWidgets/QWidget>
class GStreamerLogWidget : public QWidget
{
Q_OBJECT
Q_PROPERTY(bool busy READ isBusy WRITE setBusy NOTIFY busyChanged FINAL)
Q_PROPERTY(int count READ count CONSTANT FINAL)
Q_PROPERTY(int filteredCount READ filteredCount NOTIFY filteredCountChanged FINAL)
public:
explicit GStreamerLogWidget(const QString &fileName, QWidget *parent = nullptr);
~GStreamerLogWidget() override;
bool isBusy() const;
int count() const;
int filteredCount() const;
public slots:
void setBusy(bool busy);
void reload();
signals:
void busyChanged(bool busy);
void progressChanged(int progress); // TODO: make property
void filteredCountChanged(int count);
void openPreferences(const QString &focus);
void errorOccurred(const QString &message);
private:
class Private;
QScopedPointer<Private> d;
};
#endif // GSTREAMERLOGWIDGET_H