-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacherlesson.cpp
41 lines (31 loc) · 928 Bytes
/
teacherlesson.cpp
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
37
38
39
40
41
#include "teacherlesson.h"
#include <utility>
TeacherLesson::TeacherLesson()
: html_id(""), name(""), teacher(""), teacher_html_id("") {}
TeacherLesson::TeacherLesson(QString name, QString html_id)
: html_id(std::move(html_id)), name(std::move(name)) {}
TeacherLesson::TeacherLesson(QString name, QString html_id, QString teacher, QString teacher_html_id)
: html_id(std::move(html_id)), name(std::move(name)), teacher(std::move(teacher)),
teacher_html_id(std::move(teacher_html_id)) {}
void TeacherLesson::start()
{
this->started = true;
}
bool TeacherLesson::is_started() const
{
return this->started;
}
bool TeacherLesson::is_ended() const
{
return this->ended;
}
void TeacherLesson::end()
{
this->ended = true;
}
TeacherLesson::video_info TeacherLesson::pop_video_info()
{
auto info = this->video_infos[0];
this->video_infos.pop_front();
return info;
}