summaryrefslogtreecommitdiffstats
path: root/video.h
blob: 4efee939246465987acacc09804f39fd422a5ff1 (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
#ifndef VIDEO_H
#define VIDEO_H

#include <QObject>
#include <QBitArray>

class Job;
class DVDDrive;
class Video : public QObject
{
	Q_OBJECT
public:
	Video(DVDDrive *dvdDrive);
	enum Jobs { DVDImage, EncodeMP4, Upload, Subtitle, Poster };
	Job* nextJob();
	bool isJobComplete(Jobs job) const;
private:
	QBitArray m_jobsCompleted;
	QString m_title;
	DVDDrive *m_dvdDrive;
private slots:
	void completedJob(bool success);
};

#endif // VIDEO_H