[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:18:49 UTC 2011


The following commit has been merged in the debian branch:
commit 16325ef0495631165f7a7ddbcf765a074a35860a
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Sun Dec 6 18:06:42 2009 +0100

    opimd: Calls: implement org.freesmartphone.PIM.Fields dbus methods

diff --git a/framework/subsystems/opimd/pimd_calls.py b/framework/subsystems/opimd/pimd_calls.py
index 4a852da..96b9831 100644
--- a/framework/subsystems/opimd/pimd_calls.py
+++ b/framework/subsystems/opimd/pimd_calls.py
@@ -48,7 +48,7 @@ _DBUS_PATH_QUERIES = _DBUS_PATH_CALLS + '/Queries'
 _DIN_CALLS = _DIN_CALLS_BASE + '.' + 'Calls'
 _DIN_ENTRY = _DIN_CALLS_BASE + '.' + 'Call'
 _DIN_QUERY = _DIN_CALLS_BASE + '.' + 'CallQuery'
-
+_DIN_FIELDS = _DIN_CALLS_BASE + '.' + 'Fields'
 
 #----------------------------------------------------------------------------#
 class Call(GenericEntry):
@@ -399,3 +399,20 @@ class CallDomain(Domain, GenericDomain):
                     self.NewMissedCalls(self._new_missed_calls)
 
         self.update(num_id, data, entryif = callif, entry = call)
+
+    @dbus_method(_DIN_FIELDS, "ss", "")
+    def Add(self, name, type):
+        self.add_new_field(name, type)
+
+    @dbus_method(_DIN_FIELDS, "", "a{ss}")
+    def List(self):
+        return self.list_fields()
+
+    @dbus_method(_DIN_FIELDS, "s", "")
+    def Delete(self, name):
+        self.remove_field(name)
+
+    @dbus_method(_DIN_FIELDS, "s", "s")
+    def Get(self, name):
+        return self.field_type_from_name(name)
+

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list