DSZone: add registerCallbackWindowDestroy() 65/241865/1
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 05:59:50 +0000 (14:59 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 10:12:23 +0000 (19:12 +0900)
Change-Id: Ie2887d8700ce481bfd6f6c04cb4a5c9d443a3874
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/DSZone/DSZone.cpp
src/DSZone/DSZone.h

index 4f7b5e4..f075601 100644 (file)
@@ -102,6 +102,11 @@ void DSZone::registerCallbackWindowShellCreated(DSObject *slot, std::function<vo
        __windowShellCreatedSignal.connect(slot, func);
 }
 
+void DSZone::registerCallbackWindowDestroy(DSObject *slot, std::function<void(std::shared_ptr<DSWindow>)> func)
+{
+       __windowDestroySignal.connect(slot, func);
+}
+
 void DSZone::callCallbackWindowCreated()
 {
        __windowCreatedSignal.emit(nullptr);
index be3d78e..7b37a6c 100644 (file)
@@ -52,6 +52,7 @@ public:
 
        // Callback methods
        void registerCallbackWindowCreated(DSObject *slot, std::function<void(std::shared_ptr<DSWindow>)> func);
+       void registerCallbackWindowDestroy(DSObject *slot, std::function<void(std::shared_ptr<DSWindow>)> func);
        void registerCallbackWindowShellCreated(DSObject *slot, std::function<void(std::shared_ptr<DSWindowShell>)> func);
 
        // emit functions for testing