Logo Search packages:      
Sourcecode: telepathy-blue version File versions

ConnectionManager.py

import dbus
from tpblue.Connection import Connection
import telepathy.server.connmgr

class ConnectionManager(telepathy.server.connmgr.ConnectionManager):
      def __init__(self):
            telepathy.server.connmgr.ConnectionManager.__init__(self, "blue")
            self._protos = { "sms": self.request_sms_connection   }
      
      def request_sms_connection (self, connmgr, parameters):
            print 'Requesting connection:', parameters
            return Connection("sms", parameters["account"])
            
      def GetParameters(self, proto):
            assert proto in self._protos.keys()
            return [("account", 1, "s", dbus.Variant("none","s")), ("channel", 4, "u", dbus.Variant("2","u"))]
                  
            
            

Generated by  Doxygen 1.6.0   Back to index