[AT-SPI] simplify dbus
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / bridge / bridge-impl.cpp
index 80b3fb4..f520ef4 100644 (file)
@@ -55,6 +55,7 @@ class BridgeImpl : public virtual BridgeBase,
 {
   DBus::DBusClient                                              listenOnAtspiEnabledSignalClient;
   DBus::DBusClient                                              registryClient, directReadingClient;
+  DBus::DBusClient2                                             atspiEnabledSignalClient;
   bool                                                          screenReaderEnabled = false;
   bool                                                          isEnabled           = false;
   bool                                                          isShown             = false;
@@ -314,6 +315,8 @@ public:
 
   void Initialize() override
   {
+    atspiEnabledSignalClient = DBus::DBusClient2{A11yDbusName, A11yDbusPath, A11yDbusStatusInterface, DBus::ConnectionType::SESSION};
+
     auto req = DBus::DBusClient{A11yDbusName, A11yDbusPath, A11yDbusStatusInterface, DBus::ConnectionType::SESSION};
     auto p   = req.property<bool>("ScreenReaderEnabled").get();
     if(p)