summaryrefslogtreecommitdiffstats
path: root/newdvdgui.h
blob: d7f7505ad238900af3a21c5565922a2a3d9dfc61 (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
32
33
34
35
36
#ifndef NEWDVDGUI_H
#define NEWDVDGUI_H

#include <QGroupBox>
#include <QMap>
class QLineEdit;
class QLabel;
class QPushButton;
class TitleLoader;

class NewDVDGui : public QGroupBox
{
	Q_OBJECT
public:
	NewDVDGui();
private:
	QLineEdit *m_dvdName;
	QLabel *m_status;
	QMap<int, QString> m_titles;
	const QString m_insertDvd;
	const QString m_loadingTitles;
	const QString m_ripping;
	QPushButton *m_rip;
	QPushButton *m_eject;
	TitleLoader *m_titleLoader;
private slots:
	void dvdAdded();
	void dvdRemoved();
	void validateName(const QString &name);
	void rip();
	void loadedTitles(QMap<int, QString> titles);
signals:
	void newDVD(QString name, QMap<int, QString> titles);
};

#endif // NEWDVDGUI_H