zxdg_shell_v6: Add ZxdgShellV6 skeleton class 95/241595/1
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 8 Jul 2020 07:43:10 +0000 (16:43 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:46:12 +0000 (18:46 +0900)
Change-Id: If899ec750b4ac6de84e504fff910680f23351761

src/DSWaylandServer/DSWaylandZxdgShellV6.cpp [new file with mode: 0644]
src/DSWaylandServer/DSWaylandZxdgShellV6.h [new file with mode: 0644]
src/DSWaylandServer/DSWaylandZxdgShellV6Private.h [new file with mode: 0644]
src/meson.build
tests/DSWaylandZxdgShellV6-test.cpp [new file with mode: 0644]
tests/meson.build

diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp
new file mode 100644 (file)
index 0000000..3c2333c
--- /dev/null
@@ -0,0 +1,48 @@
+#include "DSWaylandZxdgShellV6.h"
+#include "DSWaylandZxdgShellV6Private.h"
+
+
+namespace display_server
+{
+
+DSWaylandZxdgShellV6::DSWaylandZxdgShellV6()
+       : DSObject(), DS_INIT_PRIVATE_PTR(DSWaylandZxdgShellV6)
+{
+}
+
+DSWaylandZxdgShellV6::~DSWaylandZxdgShellV6()
+{
+}
+
+
+DSWaylandZxdgShellV6Private::DSWaylandZxdgShellV6Private(DSWaylandZxdgShellV6 *p_ptr)
+       : DSObjectPrivate(p_ptr), __p_ptr(p_ptr)
+{
+}
+
+DSWaylandZxdgShellV6Private::~DSWaylandZxdgShellV6Private()
+{
+}
+
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_bind_resource(zxdg_shell_v6::Resource *resource)
+{
+}
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_destroy_resource(zxdg_shell_v6::Resource *resource)
+{
+}
+
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_destroy(zxdg_shell_v6::Resource *resource)
+{
+}
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_create_positioner(zxdg_shell_v6::Resource *resource, uint32_t id)
+{
+}
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_get_xdg_surface(zxdg_shell_v6::Resource *resource, uint32_t id, struct ::wl_resource *surface)
+{
+}
+void DSWaylandZxdgShellV6Private::zxdg_shell_v6_pong(zxdg_shell_v6::Resource *resource, uint32_t serial)
+{
+}
+
+} // namespace display_server
+
diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.h b/src/DSWaylandServer/DSWaylandZxdgShellV6.h
new file mode 100644 (file)
index 0000000..903dbf7
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef __DS_WAYLAND_ZXDG_SHELL_V6_H__
+#define __DS_WAYLAND_ZXDG_SHELL_V6_H__
+
+#include "DSCore.h"
+#include <DSObject.h>
+
+namespace display_server
+{
+
+class DSWaylandZxdgShellV6Private;
+
+class DSWaylandZxdgShellV6 : public DSObject
+{
+DS_PIMPL_USE_PRIVATE(DSWaylandZxdgShellV6);
+
+public:
+       DSWaylandZxdgShellV6();
+       virtual ~DSWaylandZxdgShellV6();
+
+};
+
+}
+
+#endif // __DS_WAYLAND_ZXDG_SHELL_V6_H__
+
diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h
new file mode 100644 (file)
index 0000000..6a773d5
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__
+#define __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__
+
+#include "dswayland-server-xdg-shell-unstable-v6.h"
+#include "DSWaylandZxdgShellV6.h"
+
+namespace display_server
+{
+
+class DSWaylandZxdgShellV6Private : public DSObjectPrivate, public DSWaylandServer::zxdg_shell_v6
+{
+DS_PIMPL_USE_PUBLIC(DSWaylandZxdgShellV6);
+
+public:
+    DSWaylandZxdgShellV6Private() = delete;
+    DSWaylandZxdgShellV6Private(DSWaylandZxdgShellV6 *p_ptr);
+    ~DSWaylandZxdgShellV6Private() override;
+
+protected:
+    void zxdg_shell_v6_bind_resource(Resource *resource) override;
+    void zxdg_shell_v6_destroy_resource(Resource *resource) override;
+
+    void zxdg_shell_v6_destroy(Resource *resource) override;
+    void zxdg_shell_v6_create_positioner(Resource *resource, uint32_t id) override;
+    void zxdg_shell_v6_get_xdg_surface(Resource *resource, uint32_t id, struct ::wl_resource *surface) override;
+    void zxdg_shell_v6_pong(Resource *resource, uint32_t serial) override;
+
+private:
+};
+
+}
+
+#endif // __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__
+
index 8c5ef20..6e0262d 100644 (file)
@@ -77,6 +77,9 @@ libds_wayland_srcs = [
        'DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp',
        'DSWaylandServer/DSWaylandTizenInputDeviceManager.h',
        'DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h',
+       'DSWaylandServer/DSWaylandZxdgShellV6.cpp',
+       'DSWaylandServer/DSWaylandZxdgShellV6.h',
+       'DSWaylandServer/DSWaylandZxdgShellV6Private.h',
        ]
 
 libds_srcs += libds_wayland_srcs
diff --git a/tests/DSWaylandZxdgShellV6-test.cpp b/tests/DSWaylandZxdgShellV6-test.cpp
new file mode 100644 (file)
index 0000000..0108f15
--- /dev/null
@@ -0,0 +1,21 @@
+#include "libds-tests.h"
+#include "DSWaylandZxdgShellV6.h"
+
+using namespace display_server;
+
+class DSWaylandZxdgShellV6Test : public ::testing::Test
+{
+public:
+       void SetUp(void) override
+       {}
+       void TearDown(void) override
+       {}
+};
+
+TEST_F(DSWaylandZxdgShellV6Test, NewDSWaylandZxdgShellV6)
+{
+       DSWaylandZxdgShellV6 *zxdgShell = new DSWaylandZxdgShellV6;
+       delete zxdgShell;
+       EXPECT_TRUE(true);
+}
+
index 08ee43a..e78fd70 100644 (file)
@@ -20,6 +20,7 @@ libds_tests_srcs = [
        'DSWaylandSurface-test.cpp',
        'DSWaylandTizenInputDeviceManager-test.cpp',
        'DSWaylandTizenInputDevice-test.cpp',
+       'DSWaylandZxdgShellV6-test.cpp',
        'DSObject-test.cpp',
        'DSEventLoop-test.cpp',
        ]