summaryrefslogtreecommitdiffstats
path: root/dvdimagejob.h
blob: d53d7e606cb03f4435914f7b4c05db28c01b4c84 (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 QIODevice;

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

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

protected:
	bool executeJob();
	QWidget* gui();

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

#endif // DVDIMAGEJOB_H