-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.h
36 lines (30 loc) · 789 Bytes
/
video.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 VIDEO_H
#define VIDEO_H
#include <QObject>
#include <QPointer>
#include <QDebug>
class Video : public QObject
{
Q_OBJECT
public:
Video(QString id, QString name, QString teacher, QString url);
Video(QString name, QString teacher, QString url);
QString name;
QString teacher;
QString url;
QString id;
QString lesson_name;
bool operator==(Video const& rhs) const;
signals:
};
QDebug inline operator<<(QDebug d, const QPointer<Video> v) {
QDebug nsp = d.nospace();
nsp << "Video(id=" << v->id
<< ", name=" << v->name
<< ", lesson_name=" << v->lesson_name
<< ", teacher=" << v->teacher
<< ", url=" << v->url
<< ")";
return nsp;
}
#endif // VIDEO_H