{
Impl()
{
+#ifdef DALI_ELDBUS_AVAILABLE
Eldbus_Object* eldbus_obj;
eldbus_init();
cbhm_conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SESSION);
eldbus_proxy = eldbus_proxy_get(eldbus_obj, CBHM_DBUS_INTERFACE);
eldbus_name_owner_changed_callback_add(cbhm_conn, CBHM_DBUS_INTERFACE, NULL, cbhm_conn, EINA_TRUE);
eldbus_proxy_signal_handler_add(eldbus_proxy, "ItemClicked", _on_item_clicked, this);
+#endif // DALI_ELDBUS_AVAILABLE
mVisible = false;
mIsFirstTimeHidden = true;
}
~Impl()
{
+#ifdef DALI_ELDBUS_AVAILABLE
if(cbhm_conn)
eldbus_connection_unref(cbhm_conn);
eldbus_shutdown();
+#endif // DALI_ELDBUS_AVAILABLE
}
+#ifdef DALI_ELDBUS_AVAILABLE
Eldbus_Proxy* cbhm_proxy_get()
{
return eldbus_proxy;
{
return cbhm_conn;
}
+#endif // DALI_ELDBUS_AVAILABLE
void SetItem(const std::string& itemData)
{
int GetCount()
{
+#ifdef DALI_ELDBUS_AVAILABLE
Eldbus_Message *reply, *req;
const char * errname = NULL, *errmsg = NULL;
- int count = -1;
+#endif // DALI_ELDBUS_AVAILABLE
+ int count = -1;
+#ifdef DALI_ELDBUS_AVAILABLE
if(!(req = eldbus_proxy_method_call_new(eldbus_proxy, "CbhmGetCount")))
{
DALI_LOG_ERROR("Failed to create method call on org.freedesktop.DBus.Properties.Get");
eldbus_message_unref(req);
eldbus_message_unref(reply);
DALI_LOG_ERROR("cbhm item count(%d)", count);
+#endif // DALI_ELDBUS_AVAILABLE
return count;
}
void ShowClipboard()
{
+#ifdef DALI_ELDBUS_AVAILABLE
eldbus_proxy_call(cbhm_proxy_get(), "CbhmShow", NULL, NULL, -1, "s", "0");
+#endif // DALI_ELDBUS_AVAILABLE
mIsFirstTimeHidden = true;
mVisible = true;
}
mIsFirstTimeHidden = false;
return;
}
+#ifdef DALI_ELDBUS_AVAILABLE
eldbus_proxy_call(cbhm_proxy_get(), "CbhmHide", NULL, NULL, -1, "");
+#endif // DALI_ELDBUS_AVAILABLE
mIsFirstTimeHidden = false;
mVisible = false;
}
return mVisible;
}
+#ifdef DALI_ELDBUS_AVAILABLE
static void _on_item_clicked(void* data, const Eldbus_Message* msg EINA_UNUSED)
{
static_cast<Clipboard::Impl*>(data)->RequestItem();
Eldbus_Proxy* eldbus_proxy;
Eldbus_Connection* cbhm_conn;
+#endif // DALI_ELDBUS_AVAILABLE
std::string mSendBuffer;
bool mVisible;
const char* DALI_VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME = "db/setting/accessibility/font_name"; // It will be update at vconf-key.h and replaced.
+#ifdef DALI_ELDBUS_AVAILABLE
// DBUS accessibility
const char* BUS = "org.enlightenment.wm-screen-reader";
const char* INTERFACE = "org.tizen.GestureNavigation";
const char* PATH = "/org/tizen/GestureNavigation";
+#endif // DALI_ELDBUS_AVAILABLE
struct KeyCodeMap
{
mStyleChangedSignal.Emit(StyleChange::DEFAULT_FONT_SIZE_CHANGE);
}
+#ifdef DALI_ELDBUS_AVAILABLE
void WindowBaseEcoreWl2::OnEcoreElDBusAccessibilityNotification(void* context, const Eldbus_Message* message)
{
-#ifdef DALI_ELDBUS_AVAILABLE
AccessibilityInfo info;
// The string defines the arg-list's respective types.
}
mAccessibilitySignal.Emit(info);
-#endif
}
+#endif // DALI_ELDBUS_AVAILABLE
void WindowBaseEcoreWl2::OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type)
{