[orca/orca-gnome3: 1/23] Developing methods for expose via D-Bus
- From: Alejandro Leiva <aleiva src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-gnome3: 1/23] Developing methods for expose via D-Bus
- Date: Fri, 1 Apr 2011 12:15:24 +0000 (UTC)
commit 72ab7ae6ec952c9f33512c825cdde2f9a8103a7e
Author: José Ignacio �lvarez Ruiz <jialvarez emergya es>
Date: Fri Mar 18 15:15:22 2011 +0100
Developing methods for expose via D-Bus
src/orca/dbusserver.py | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/dbusserver.py b/src/orca/dbusserver.py
index 2572a9c..dacd6c2 100644
--- a/src/orca/dbusserver.py
+++ b/src/orca/dbusserver.py
@@ -30,6 +30,8 @@ import dbus.service
import debug
import settings
+import orca
+_settingsManager = getattr(orca, '_settingsManager')
# Handlers for logging speech and braille output.
#
@@ -141,6 +143,27 @@ class Server(dbus.service.Object):
stringIO = StringIO.StringIO()
return result
+ @dbus.service.method(dbus_interface='org.gnome.Orca.Settings',
+ in_signature='s', out_signature='v')
+ def getSetting(self, settingName):
+ return str(_settingsManager.getSetting(settingName))
+
+ @dbus.service.method(dbus_interface='org.gnome.Orca.Settings',
+ in_signature='s', out_signature='s')
+ def getPreferences(self, profile='default'):
+ return str(_settingsManager.getPreferences(profile))
+
+ @dbus.service.method(dbus_interface='org.gnome.Orca.Settings',
+ in_signature='', out_signature='b')
+ def isFirstStart(self):
+ return _settingsManager.isFirstStart()
+
+ @dbus.service.method(dbus_interface='org.gnome.Orca.Settings',
+ in_signature='s', out_signature='s')
+ def getGeneralSettings(self, profile='default'):
+ return str(_settingsManager.getGeneralSettings(profile))
+
+
def init():
"""Sets up the Orca DBus service. This will only take effect once
the Orca main loop starts."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]