def queue_action(self):
self._cm[telepathy.interfaces.CONN_MGR_INTERFACE].GetParameters(
- 'sip',
+ 'gv',
reply_handler = self._on_done,
error_handler = self._on_error,
)
def queue_action(self):
self._cm[telepathy.server.CONNECTION_MANAGER].RequestConnection(
- 'sip',
+ 'gv',
{
'account': self._username,
'password': self._password,
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()
# 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,
_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"
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):
"""
- >>> 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):
"""
- >>> 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]
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
[Profile]
Manager=theonering
-Protocol=sip
+Protocol=gv
DisplayName=Google Voice
IconName = im-theonering
SupportsInvisible = 1
[Profile]
Manager=theonering
-Protocol=sip
+Protocol=gv
DisplayName=Google Voice
IconName = im-theonering
ConfigurationUI = haze-plugin
[Profile]
Manager=theonering
-Protocol=sip
+Protocol=gv
DisplayName=Google Voice
IconName = im-theonering
ConfigurationUI = haze-plugin
[Profile]
Manager=theonering
-Protocol=sip
+Protocol=gv
DisplayName=Google Voice
IconName = im-theonering
SupportsInvisible = 1