Add org.agl.homescreen function renderSurfaceToAreaAllowed.
[staging/HomeScreen.git] / HomeScreen / src / homescreencontrolinterface.h
1 #ifndef HOMESCREENCONTROLINTERFACE_H
2 #define HOMESCREENCONTROLINTERFACE_H
3
4 #include <QObject>
5 #include "include/homescreen.hpp"
6 #include "homescreen_adapter.h"
7 #include <include/appframework.hpp>
8 #include <appframework_proxy.h>
9
10 class HomeScreenControlInterface : public QObject
11 {
12     Q_OBJECT
13 public:
14     explicit HomeScreenControlInterface(QObject *parent = 0);
15     ~HomeScreenControlInterface();
16
17 signals:
18     void newRequestsToBeVisibleApp(int pid);
19
20     QList<int> newRequestGetAllSurfacesOfProcess(int pid);
21     int newRequestGetSurfaceStatus(int surfaceId);
22     void newRequestRenderSurfaceToArea(int surfaceId, int layoutArea);
23     bool newRequestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
24     void newRequestSurfaceIdToFullScreen(int surfaceId);
25
26 //from homescreen_adapter.h
27 public Q_SLOTS: // METHODS
28     QList<int> getAllSurfacesOfProcess(int pid);
29     int getSurfaceStatus(int surfaceId);
30     void hardKeyPressed(int key);
31     void renderSurfaceToArea(int surfaceId, int layoutArea);
32     bool renderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
33     void requestSurfaceIdToFullScreen(int surfaceId);
34 private:
35     HomescreenAdaptor *mp_homeScreenAdaptor;
36     org::agl::appframework *mp_dBusAppFrameworkProxy;
37 };
38
39 #endif // HOMESCREENCONTROLINTERFACE_H