DSSeat: add keyboard/mouse/touch skeleton classes 78/241578/1
authorjeon <jhyuni.kang@samsung.com>
Mon, 6 Jul 2020 06:03:29 +0000 (15:03 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:45:56 +0000 (18:45 +0900)
Change-Id: Ia712e6f5d237caf06c239341cfabe9e1ac9cd771

src/DSSeat/DSKeyboard.cpp [new file with mode: 0644]
src/DSSeat/DSKeyboard.h [new file with mode: 0644]
src/DSSeat/DSPointer.cpp [new file with mode: 0644]
src/DSSeat/DSPointer.h [new file with mode: 0644]
src/DSSeat/DSSeat.cpp
src/DSSeat/DSSeat.h
src/DSSeat/DSTouch.cpp [new file with mode: 0644]
src/DSSeat/DSTouch.h [new file with mode: 0644]
src/meson.build

diff --git a/src/DSSeat/DSKeyboard.cpp b/src/DSSeat/DSKeyboard.cpp
new file mode 100644 (file)
index 0000000..c8ea7a7
--- /dev/null
@@ -0,0 +1,19 @@
+#include "DSKeyboard.h"
+
+namespace display_server
+{
+
+DSKeyboard::DSKeyboard()
+       : __seat(nullptr)
+{
+}
+
+DSKeyboard::DSKeyboard(DSSeat *seat)
+       : __seat(seat)
+{
+}
+
+DSKeyboard::~DSKeyboard()
+{}
+
+} // namespace display_server
\ No newline at end of file
diff --git a/src/DSSeat/DSKeyboard.h b/src/DSSeat/DSKeyboard.h
new file mode 100644 (file)
index 0000000..db5081e
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _DSKEYBOARD_H_
+#define _DSKEYBOARD_H_
+
+#include <DSSeat.h>
+
+namespace display_server
+{
+
+class DSKeyboard
+{
+public:
+       DSKeyboard();
+       DSKeyboard(DSSeat *seat);
+       virtual ~DSKeyboard();
+
+private:
+       DSSeat *__seat;
+};
+
+}
+
+#endif
\ No newline at end of file
diff --git a/src/DSSeat/DSPointer.cpp b/src/DSSeat/DSPointer.cpp
new file mode 100644 (file)
index 0000000..8f243ef
--- /dev/null
@@ -0,0 +1,19 @@
+#include "DSPointer.h"
+
+namespace display_server
+{
+
+DSPointer::DSPointer()
+       : __seat(nullptr)
+{
+}
+
+DSPointer::DSPointer(DSSeat *seat)
+       : __seat(seat)
+{
+}
+
+DSPointer::~DSPointer()
+{}
+
+} // namespace display_server
\ No newline at end of file
diff --git a/src/DSSeat/DSPointer.h b/src/DSSeat/DSPointer.h
new file mode 100644 (file)
index 0000000..d5ac041
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _DSKEYBOARD_H_
+#define _DSPOINTER_H_
+
+#include <DSSeat.h>
+
+namespace display_server
+{
+
+class DSPointer
+{
+public:
+       DSPointer();
+       DSPointer(DSSeat *seat);
+       virtual ~DSPointer();
+
+private:
+       DSSeat *__seat;
+};
+
+}
+
+#endif
\ No newline at end of file
index ba66418..69e29ac 100644 (file)
@@ -4,7 +4,10 @@ namespace display_server
 {
 
 DSSeat::DSSeat()
-       : __input(nullptr)
+       : __input(nullptr),
+         __keyboard(nullptr),
+         __pointer(nullptr),
+         __touch(nullptr)
 {}
 
 DSSeat::~DSSeat()
index 78f06b4..97bc076 100644 (file)
@@ -6,6 +6,10 @@
 namespace display_server
 {
 
+class DSKeyboard;
+class DSPointer;
+class DSTouch;
+
 class DSSeat
 {
 public:
@@ -17,6 +21,9 @@ public:
 
 private:
        DSInput *__input;
+       DSKeyboard *__keyboard;
+       DSPointer *__pointer;
+       DSTouch *__touch;
 };
 
 }
diff --git a/src/DSSeat/DSTouch.cpp b/src/DSSeat/DSTouch.cpp
new file mode 100644 (file)
index 0000000..6913f4d
--- /dev/null
@@ -0,0 +1,19 @@
+#include "DSTouch.h"
+
+namespace display_server
+{
+
+DSTouch::DSTouch()
+       : __seat(nullptr)
+{
+}
+
+DSTouch::DSTouch(DSSeat *seat)
+       : __seat(seat)
+{
+}
+
+DSTouch::~DSTouch()
+{}
+
+} // namespace display_server
\ No newline at end of file
diff --git a/src/DSSeat/DSTouch.h b/src/DSSeat/DSTouch.h
new file mode 100644 (file)
index 0000000..df3e8f3
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _DSTOUCH_H_
+#define _DSTOUCH_H_
+
+#include <DSSeat.h>
+
+namespace display_server
+{
+
+class DSTouch
+{
+public:
+       DSTouch();
+       DSTouch(DSSeat *seat);
+       virtual ~DSTouch();
+
+private:
+       DSSeat *__seat;
+};
+
+}
+
+#endif
\ No newline at end of file
index 68c1816..62f3f3a 100644 (file)
@@ -35,6 +35,12 @@ libds_srcs = [
        'DSRender/DSRenderViewEcoreEvasImpl.cpp',
        'DSRender/DSRenderViewDaliImpl.cpp',
        'DSSeat/DSSeat.cpp',
+       'DSSeat/DSKeyboard.cpp',
+       'DSSeat/DSKeyboard.h',
+       'DSSeat/DSPointer.cpp',
+       'DSSeat/DSPointer.h',
+       'DSSeat/DSTouch.cpp',
+       'DSSeat/DSTouch.h',
        'DSSignal/DSSignal.cpp',
        'DSSignal/DSSignal.h',
        'DSCore/DSCore.h',