Add more grpc - Asyncstuff
[src/agl-compositor.git] / clients / shell.h
diff --git a/clients/shell.h b/clients/shell.h
new file mode 100644 (file)
index 0000000..1cdbd1d
--- /dev/null
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <memory>
+
+#include "agl-shell-client-protocol.h"
+
+#include "main-grpc.h"
+
+class Shell {
+public:
+       std::shared_ptr<struct agl_shell> m_shell;
+       struct shell_data *m_shell_data;
+
+       Shell(std::shared_ptr<struct agl_shell> shell,
+             struct shell_data *sh_data) :
+               m_shell(shell), m_shell_data(sh_data) { }
+       void ActivateApp(const std::string &app_id, const std::string &output_name);
+       void DeactivateApp(const std::string &app_id);
+       void SetAppSplit(const std::string &app_id, uint32_t orientation);
+       void SetAppFloat(const std::string &app_id);
+};