diff options
Diffstat (limited to 'dvddrive.h')
-rw-r--r-- | dvddrive.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dvddrive.h b/dvddrive.h new file mode 100644 index 0000000..a400ae3 --- /dev/null +++ b/dvddrive.h @@ -0,0 +1,27 @@ +#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; + void eject(); +private: + QDBusInterface *m_halManager; + QDBusInterface *m_halDisc; +private slots: + bool deviceAdded(const QString &device); + void deviceRemoved(const QString &device); +signals: + void dvdAdded(); + void dvdRemoved(); +}; + +#endif // DVDDRIVE_H |