registerShortcut
[apps/homescreen.git] / homescreen / src / toucharea.h
1 #ifndef TOUCHAREA_H
2 #define TOUCHAREA_H
3
4 #include <QBitmap>
5 #include <QQuickWindow>
6
7 enum {
8     NORMAL=0,
9     FULLSCREEN
10 };
11
12 class TouchArea : public QObject
13 {
14     Q_OBJECT
15 public:
16     explicit TouchArea();
17     ~TouchArea();
18
19     Q_INVOKABLE void switchArea(int areaType);
20     void setWindow(QQuickWindow* window);
21
22 public slots:
23     void init();
24
25 private:
26     QBitmap bitmapNormal, bitmapFullscreen;
27     QQuickWindow* myWindow;
28 };
29
30 #endif // TOUCHAREA_H