-#include "Atspi.hpp"
+#include "atspi.hpp"
#include <Eldbus.h>
#include <functional>
}
}
-bool Atspi::ConnectAtClient()
+bool atspi::ConnectAtClient()
{
auto error = atspi_init();
if (error != 0 || error != 1) {
return true;
}
-bool Atspi::DisconnectAtClient()
+bool atspi::DisconnectAtClient()
{
auto dbusStatus = _dbus_set_property_bool(ELDBUS_CONNECTION_TYPE_SESSION, "org.a11y.Bus", "/org/a11y/bus", "org.a11y.Status", "IsEnabled", false);
if (!dbusStatus)
return true;
}
-Optional<std::shared_ptr<AtspiAction>> Atspi::getActionInterface(std::shared_ptr<AtspiAccessible> accessibleObj)
+Optional<std::shared_ptr<AtspiAction>> atspi::getActionInterface(std::shared_ptr<AtspiAccessible> accessibleObj)
{
auto action = atspi_accessible_get_action_iface(accessibleObj.get());
if (action)
return {};
}
-bool Atspi::doAction(std::shared_ptr<AtspiAction> accessibleObj, int action)
+bool atspi::doAction(std::shared_ptr<AtspiAction> accessibleObj, int action)
{
GError *error = nullptr;
auto status = atspi_action_do_action(accessibleObj.get(), action, &error);
return false;
}
-bool Atspi::doActionName(std::shared_ptr<AtspiAction> accessibleObj, const std::string &action)
+bool atspi::doActionName(std::shared_ptr<AtspiAction> accessibleObj, const std::string &action)
{
GError *error = nullptr;
auto status = atspi_action_do_action_name(accessibleObj.get(), action.c_str(), &error);
return false;
}
-Optional<std::shared_ptr<AtspiAccessible>> Atspi::getObjectInRelation(std::shared_ptr<AtspiAccessible> accessibleObj, AtspiRelationType searchType)
+Optional<std::shared_ptr<AtspiAccessible>> atspi::getObjectInRelation(std::shared_ptr<AtspiAccessible> accessibleObj, AtspiRelationType searchType)
{
if (!accessibleObj) {
ERROR("accessibleObj is nullptr");
return {};
}
-Optional<std::shared_ptr<AtspiValue>> Atspi::getValueInterface(std::shared_ptr<AtspiAccessible> accessibleObj)
+Optional<std::shared_ptr<AtspiValue>> atspi::getValueInterface(std::shared_ptr<AtspiAccessible> accessibleObj)
{
auto valueInterface = atspi_accessible_get_value_iface(accessibleObj.get());
if (valueInterface)
}
}
-Optional<double> Atspi::getCurrentValue(std::shared_ptr<AtspiValue> valueInterface)
+Optional<double> atspi::getCurrentValue(std::shared_ptr<AtspiValue> valueInterface)
{
return getValueTemplateFunction<double>(atspi_value_get_current_value, valueInterface.get());
}
-bool Atspi::setCurrentValue(std::shared_ptr<AtspiValue> valueInterface, double newValue)
+bool atspi::setCurrentValue(std::shared_ptr<AtspiValue> valueInterface, double newValue)
{
GError *error = nullptr;
auto isSuccessful = atspi_value_set_current_value(valueInterface.get(), newValue, &error);
return false;
}
-Optional<double> Atspi::getMinimumIncrement(std::shared_ptr<AtspiValue> valueInterface)
+Optional<double> atspi::getMinimumIncrement(std::shared_ptr<AtspiValue> valueInterface)
{
return getValueTemplateFunction<double>(atspi_value_get_minimum_increment, valueInterface.get());
}
-Optional<double> Atspi::getMaximumValue(std::shared_ptr<AtspiValue> valueInterface)
+Optional<double> atspi::getMaximumValue(std::shared_ptr<AtspiValue> valueInterface)
{
return getValueTemplateFunction<double>(atspi_value_get_maximum_value, valueInterface.get());
}
-Optional<double> Atspi::getMinimumValue(std::shared_ptr<AtspiValue> valueInterface)
+Optional<double> atspi::getMinimumValue(std::shared_ptr<AtspiValue> valueInterface)
{
return getValueTemplateFunction<double>(atspi_value_get_minimum_value, valueInterface.get());
}
#include "UniversalSwitchLog.hpp"
#include "Window.hpp"
#include "ScreenScannerManager.hpp"
-#include "Atspi.hpp"
+#include "atspi.hpp"
#include "UniversalSwitch.hpp"
#include "CompositeSwitchProvider.hpp"
{
DEBUG("App create");
ecore_event_init();
- Atspi::ConnectAtClient();
+ atspi::ConnectAtClient();
auto activityFactory = ActivityFactory::getInstance();
{
DEBUG("app termination procedure");
ecore_event_shutdown();
- Atspi::DisconnectAtClient();
+ atspi::DisconnectAtClient();
ScreenScannerManager::instance().stopAutoscanning();
return;