[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:26 UTC 2011


The following commit has been merged in the debian branch:
commit 1541ea8a3bce9a182e5bba3d83cf1fe92166ce02
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Mon Sep 7 23:48:01 2009 +0200

    opimd: Messages: implement AddIncoming dbus method
    
    It can be used by apps to "deliver" message to user, without writing special
    opimd backend/handler for that.

diff --git a/framework/subsystems/opimd/pimd_messages.py b/framework/subsystems/opimd/pimd_messages.py
index 8ff31d3..59fdc48 100644
--- a/framework/subsystems/opimd/pimd_messages.py
+++ b/framework/subsystems/opimd/pimd_messages.py
@@ -389,9 +389,20 @@ class MessageDomain(Domain, GenericDomain):
         @param message_data List of fields; format is [Key:Value, Key:Value, ...]
         @return URI of the newly created d-bus message object"""
 
-        # We use the default backend for now
         return self.add(entry_data)
 
+
+    @dbus_method(_DIN_MESSAGES, "a{sv}", "s")
+    def AddIncoming(self, entry_data):
+        """Adds a message to the list, and send signal about incoming message
+        @param message_data List of fields; format is [Key:Value, Key:Value, ...]
+        @return URI of the newly created d-bus message object"""
+
+        message_id = self.add(entry_data)
+        self.IncomingMessage(_DBUS_PATH_MESSAGES+ '/' + str(message_id))
+        return message_id
+
+
     @dbus_method(_DIN_MESSAGES, "a{sv}s", "s")
     def GetSingleEntrySingleField(self, query, field_name):
         """Returns the first message found for a query, making it real easy to query simple things

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list