diff frontends/quick_frontend/quick_app.py @ 22:bb72c29f3432

added action cb mechanism for buttons. Tested with a temporary new user registration button.
author Goffi <goffi@goffi.org>
date Tue, 01 Dec 2009 04:56:08 +0100
parents 6928e3cb73a8
children 53e921c8a357
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_app.py	Sun Nov 08 01:49:08 2009 +0100
+++ b/frontends/quick_frontend/quick_app.py	Tue Dec 01 04:56:08 2009 +0100
@@ -40,12 +40,14 @@
         self.bridge.register("paramUpdate", self.paramUpdate)
         self.bridge.register("contactDeleted", self.contactDeleted)
         self.bridge.register("askConfirmation", self.askConfirmation, "request")
+        self.bridge.register("actionResult", self.actionResult, "request")
         
         ###now we get the essential params###
-        self.whoami=JID(self.bridge.getParamV("JabberID","Connection"))
-        self.watched=self.bridge.getParamV("Watched", "Misc").split() #TODO: put this in a plugin
+        self.whoami=JID(self.bridge.getParamA("JabberID","Connection"))
+        self.watched=self.bridge.getParamA("Watched", "Misc").split() #TODO: put this in a plugin
 
         ## misc ##
+        self.current_action_ids = set()
         self.onlineContact = set()  #FIXME: temporary
 
         if self.bridge.isConnected():
@@ -156,3 +158,6 @@
     
     def askConfirmation(self, type, id, data):
         raise NotImplementedError
+    
+    def actionResult(self, type, id, data):
+        raise NotImplementedError