blob: 70f3beb6d4022bae28b06369fba9954a3c9a2254 (
plain) (
blame)
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
|
#include "uploadjob.h"
#include <QWidget>
#include <QLabel>
UploadJob::UploadJob(Video *video) :
Job(video, false)
{
}
Video::Jobs UploadJob::jobType() const
{
return Video::Upload;
}
bool UploadJob::executeJob()
{
//TODO: upload the mp4!
sleep(5);
emit completed(true);
return true;
}
QWidget* UploadJob::gui()
{
//TODO: make a gui
return new QLabel("Endoplasmic sludge in your upload house");
}
void UploadJob::kill()
{
//TODO: implement terminating
}
|