Switching protocol from sip to gv
authorEd Page <eopage@byu.net>
Wed, 10 Mar 2010 02:38:49 +0000 (20:38 -0600)
committerEd Page <eopage@byu.net>
Wed, 10 Mar 2010 02:38:49 +0000 (20:38 -0600)
hand_tests/generic.py
hand_tests/params.py
hand_tests/presence.py
src/constants.py
src/util/tp_utils.py
support/theonering.manager
support/theonering.profile.debian
support/theonering.profile.diablo
support/theonering.profile.fremantle
support/theonering.profile.mer

index 3d83a79..a25f77b 100755 (executable)
@@ -75,7 +75,7 @@ class DisplayParams(Action):
 
        def queue_action(self):
                self._cm[telepathy.interfaces.CONN_MGR_INTERFACE].GetParameters(
 
        def queue_action(self):
                self._cm[telepathy.interfaces.CONN_MGR_INTERFACE].GetParameters(
-                       'sip',
+                       'gv',
                        reply_handler = self._on_done,
                        error_handler = self._on_error,
                )
                        reply_handler = self._on_done,
                        error_handler = self._on_error,
                )
@@ -123,7 +123,7 @@ class RequestConnection(Action):
 
        def queue_action(self):
                self._cm[telepathy.server.CONNECTION_MANAGER].RequestConnection(
 
        def queue_action(self):
                self._cm[telepathy.server.CONNECTION_MANAGER].RequestConnection(
-                       'sip',
+                       'gv',
                        {
                                'account':  self._username,
                                'password': self._password,
                        {
                                'account':  self._username,
                                'password': self._password,
index e2f663f..c3906ea 100755 (executable)
@@ -39,7 +39,7 @@ if __name__ == "__main__":
        cm = reg.GetManager('theonering')
 
        # get the parameters required to make a Jabber connection
        cm = reg.GetManager('theonering')
 
        # get the parameters required to make a Jabber connection
-       cm[CONN_MGR_INTERFACE].GetParameters('sip',
+       cm[CONN_MGR_INTERFACE].GetParameters('gv',
                reply_handler = print_params, error_handler = error_cb)
 
        loop = gobject.MainLoop()
                reply_handler = print_params, error_handler = error_cb)
 
        loop = gobject.MainLoop()
index 0a90e7f..52b6c9f 100755 (executable)
@@ -43,7 +43,7 @@ class Example(object):
 
                # get the parameters required to make a Jabber connection
                # Begin Example 2-3
 
                # get the parameters required to make a Jabber connection
                # Begin Example 2-3
-               cm[CONNECTION_MANAGER].RequestConnection('sip',
+               cm[CONNECTION_MANAGER].RequestConnection('gv',
                        {
                                'account':  account,
                                'forward':  forward,
                        {
                                'account':  account,
                                'forward':  forward,
index 1529e44..2940788 100644 (file)
@@ -8,5 +8,5 @@ __app_magic__ = 0xdeadbeef
 _data_path_ = os.path.join(os.path.expanduser("~"), ".telepathy-theonering")
 _user_settings_ = "%s/settings.ini" % _data_path_
 _user_logpath_ = "%s/theonering.log" % _data_path_
 _data_path_ = os.path.join(os.path.expanduser("~"), ".telepathy-theonering")
 _user_settings_ = "%s/settings.ini" % _data_path_
 _user_logpath_ = "%s/theonering.log" % _data_path_
-_telepathy_protocol_name_ = "sip"
+_telepathy_protocol_name_ = "gv"
 _telepathy_implementation_name_ = "theonering"
 _telepathy_implementation_name_ = "theonering"
index 712e642..addae92 100644 (file)
@@ -138,23 +138,23 @@ class NewChannelSignaller(object):
 
 def channel_path_to_conn_path(channelObjectPath):
        """
 
 def channel_path_to_conn_path(channelObjectPath):
        """
-       >>> channel_path_to_conn_path("/org/freedesktop/Telepathy/ConnectionManager/theonering/sip/USERNAME/Channel1")
-       '/org/freedesktop/Telepathy/ConnectionManager/theonering/sip/USERNAME'
+       >>> channel_path_to_conn_path("/org/freedesktop/Telepathy/ConnectionManager/theonering/gv/USERNAME/Channel1")
+       '/org/freedesktop/Telepathy/ConnectionManager/theonering/gv/USERNAME'
        """
        return channelObjectPath.rsplit("/", 1)[0]
 
 
 def path_to_service_name(path):
        """
        """
        return channelObjectPath.rsplit("/", 1)[0]
 
 
 def path_to_service_name(path):
        """
-       >>> path_to_service_name("/org/freedesktop/Telepathy/ConnectionManager/theonering/sip/USERNAME/Channel1")
-       'org.freedesktop.Telepathy.ConnectionManager.theonering.sip.USERNAME'
+       >>> path_to_service_name("/org/freedesktop/Telepathy/ConnectionManager/theonering/gv/USERNAME/Channel1")
+       'org.freedesktop.Telepathy.ConnectionManager.theonering.gv.USERNAME'
        """
        return ".".join(path[1:].split("/")[0:7])
 
 
 def cm_from_path(path):
        """
        """
        return ".".join(path[1:].split("/")[0:7])
 
 
 def cm_from_path(path):
        """
-       >>> cm_from_path("/org/freedesktop/Telepathy/ConnectionManager/theonering/sip/USERNAME/Channel1")
+       >>> cm_from_path("/org/freedesktop/Telepathy/ConnectionManager/theonering/gv/USERNAME/Channel1")
        'theonering'
        """
        return path[1:].split("/")[4]
        'theonering'
        """
        return path[1:].split("/")[4]
index 2caff6b..7099c47 100644 (file)
@@ -3,7 +3,7 @@ Name = theonering
 BusName = org.freedesktop.Telepathy.ConnectionManager.theonering
 ObjectPath = /org/freedesktop/Telepathy/ConnectionManager/theonering
 
 BusName = org.freedesktop.Telepathy.ConnectionManager.theonering
 ObjectPath = /org/freedesktop/Telepathy/ConnectionManager/theonering
 
-[Protocol sip]
+[Protocol gv]
 param-account = s required
 param-password = s required secret
 param-forward = s
 param-account = s required
 param-password = s required secret
 param-forward = s
index 0ac91a5..958dec0 100644 (file)
@@ -1,6 +1,6 @@
 [Profile]
 Manager=theonering
 [Profile]
 Manager=theonering
-Protocol=sip
+Protocol=gv
 DisplayName=Google Voice
 IconName = im-theonering
 SupportsInvisible = 1
 DisplayName=Google Voice
 IconName = im-theonering
 SupportsInvisible = 1
index cd5c28e..bf4ccb3 100644 (file)
@@ -1,6 +1,6 @@
 [Profile]
 Manager=theonering
 [Profile]
 Manager=theonering
-Protocol=sip
+Protocol=gv
 DisplayName=Google Voice
 IconName = im-theonering
 ConfigurationUI = haze-plugin
 DisplayName=Google Voice
 IconName = im-theonering
 ConfigurationUI = haze-plugin
index 42dbae1..02bf2ac 100644 (file)
@@ -1,6 +1,6 @@
 [Profile]
 Manager=theonering
 [Profile]
 Manager=theonering
-Protocol=sip
+Protocol=gv
 DisplayName=Google Voice
 IconName = im-theonering
 ConfigurationUI = haze-plugin
 DisplayName=Google Voice
 IconName = im-theonering
 ConfigurationUI = haze-plugin
index 0ac91a5..958dec0 100644 (file)
@@ -1,6 +1,6 @@
 [Profile]
 Manager=theonering
 [Profile]
 Manager=theonering
-Protocol=sip
+Protocol=gv
 DisplayName=Google Voice
 IconName = im-theonering
 SupportsInvisible = 1
 DisplayName=Google Voice
 IconName = im-theonering
 SupportsInvisible = 1