Clean up volume key handling code.
[dorian] / fullscreenwindow.h
diff --git a/fullscreenwindow.h b/fullscreenwindow.h
new file mode 100644 (file)
index 0000000..601269b
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef FULLSCREENWINDOW_H
+#define FULLSCREENWINDOW_H
+
+#include <QRect>
+#include <QObject>
+
+#include "adopterwindow.h"
+
+class QWidget;
+class QMouseEvent;
+class QResizeEvent;
+class TranslucentButton;
+
+/** A full screen window with a restore button. */
+class FullScreenWindow: public AdopterWindow
+{
+    Q_OBJECT
+
+public:
+    explicit FullScreenWindow(QWidget *parent);
+    void showFullScreen();
+
+signals:
+    /** Emitted when the restore button is pressed. */
+    void restore();
+
+protected:
+    void resizeEvent(QResizeEvent *e);
+
+private:
+    TranslucentButton *restoreButton;
+};
+
+#endif // FULLSCREENWINDOW_H