Initial source commit
[src/libhomescreen.git] / libhomescreen / include / libhomescreen.hpp
diff --git a/libhomescreen/include/libhomescreen.hpp b/libhomescreen/include/libhomescreen.hpp
new file mode 100644 (file)
index 0000000..6baa805
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef LIBHOMESCREEN_HPP
+#define LIBHOMESCREEN_HPP
+
+#include <vector>
+
+// forward declarations
+struct _LibHomeScreenHomescreen;
+typedef struct _LibHomeScreenHomescreen LibHomeScreenHomescreen;
+
+typedef struct
+{
+    int x;
+    int y;
+    int width;
+    int height;
+} sRectangle;
+
+class LibHomeScreen
+{
+public:
+    LibHomeScreen();
+    ~LibHomeScreen();
+
+    // these are representing the D-Bus methods:
+    std::vector<int> getAllSurfacesOfProcess(int pid);
+    int getSurfaceStatus(int surfaceId);
+    void hardKeyPressed(int key);
+    void renderSurfaceToArea(int surfaceId, int layoutArea);
+    bool renderAppToAreaAllowed(int appCategory, int layoutArea);
+    void requestSurfaceIdToFullScreen(int surfaceId);
+private:
+    LibHomeScreenHomescreen *mp_libHomeScreenHomescreen_Proxy;
+};
+
+#endif // LIBHOMESCREEN_HPP
+