summaryrefslogtreecommitdiffstats
path: root/dvdimagejob.h
blob: 4a99f164cf374abde39a72a6e7aded8137497655 (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
29
30
31
#ifndef DVDIMAGEJOB_H
#define DVDIMAGEJOB_H

#include "job.h"
class DVDDrive;
class QIODevice;

class DVDImageJob : public Job
{
	Q_OBJECT
public:
	DVDImageJob(Video *video, DVDDrive *dvdDrive);
	bool saveImageToDevice(QIODevice &out);
	bool saveImageToPath(const QString &path);
	Video::Jobs jobType();

private:
	static int cmpvob(const void *p1, const void *p2);
	typedef struct vobfile {
		int32_t start, end;
	} vobfile;
	DVDDrive *m_dvdDrive;

protected:
	bool executeJob();

signals:
	void extractProgress(int current, int total);
};

#endif // DVDIMAGEJOB_H