DSDisplayDeviceOutput: implement the output callback of the OutputTDM implements 42/241542/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Jun 2020 06:45:57 +0000 (15:45 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:44:59 +0000 (18:44 +0900)
commit5c031f3d3c1eff6a509eb2d49e94abfda105c41a
tree0fe4f19f5caa6349d019741569cb55b59f0be298
parentdcf7dbe3788c1ad2eba5eda695ac8b2eeca699c8
DSDisplayDeviceOutput: implement the output callback of the OutputTDM implements

There are five callback functions for the DeviceOuput.

IDSDisplayDevice class has OutputAdded and OutputRemoved callbacks.
  virtual void registerCallbackOutputAdded(DSObject *slot, std::function<void(IDSDisplayDeviceOutput *)> func) = 0;
  virtual void registerCallbackOutputRemoved(DSObject *slot, std::function<void(IDSDisplayDeviceOutput *)> func) = 0;

IDSDisplayDeviceOutput class has OutputConnected, OutputDisconnected and OutputResolutionSet callbacks.
  virtual void registerCallbackOutputConnected(DSObject *slot, std::function<void(IDSDisplayDeviceOutput *)> func) = 0;
  virtual void registerCallbackOutputDisconnected(DSObject *slot, std::function<void(IDSDisplayDeviceOutput *)> func) = 0;
  virtual void registerCallbackOutputResolutionSet(DSObject *slot, std::function<void(IDSDisplayDeviceOutput *)> func) = 0;

DSDisplayDeviceTDMImpl and DSDisplayDeviceOutputTDMImpl override these functions and implement them.

Change-Id: If76a02aa5348d5e1b5827960e86c2de55729792f
src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp
src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h
src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp
src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h
src/DSDisplayDevice/IDSDisplayDevice.h
src/DSDisplayDevice/IDSDisplayDeviceOutput.h
tests/DSDisplayDeviceTDMImpl-test.cpp