Changes to org.agl.homescreen interface
[staging/HomeScreen.git] / libhomescreen / include / libhomescreen.hpp
1 #ifndef LIBHOMESCREEN_HPP
2 #define LIBHOMESCREEN_HPP
3
4 #include <list>
5
6 // forward declarations
7 struct _LibHomeScreenHomescreen;
8 typedef struct _LibHomeScreenHomescreen LibHomeScreenHomescreen;
9
10 typedef struct
11 {
12     int x;
13     int y;
14     int width;
15     int height;
16 } sRectangle;
17
18 class LibHomeScreen
19 {
20 public:
21     LibHomeScreen();
22     ~LibHomeScreen();
23
24     // these are representing the D-Bus methods:
25     std::list<int> getAllSurfacesOfProcess(int pid);
26     int getSurfaceStatus(int surfaceId);
27     void hardKeyPressed(int key);
28     void renderSurfaceToArea(int surfaceId, int layoutArea);
29     void requestSurfaceIdToFullScreen(int surfaceId);
30
31 private:
32     LibHomeScreenHomescreen *mp_libHomeScreenHomescreen_Proxy;
33 };
34
35 #endif // LIBHOMESCREEN_HPP