blob: 16f505963dd31590a679e0aaf423583791df0320 (
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
|
#ifndef DVDDRIVE_H
#define DVDDRIVE_H
#include <QObject>
class QDBusInterface;
class DVDDrive : public QObject
{
Q_OBJECT
public:
DVDDrive(QObject *parent = 0);
QString dvdName() const;
QString dvdDevice() const;
bool dvdInserted() const;
static DVDDrive* instance();
private:
QDBusInterface *m_halManager;
QDBusInterface *m_halDisc;
static DVDDrive *s_instance;
private slots:
bool deviceAdded(const QString &device);
void deviceRemoved(const QString &device);
public slots:
void eject();
signals:
void dvdAdded();
void dvdRemoved();
};
#endif // DVDDRIVE_H
|