From 6634ec56df8988506b8a4ef6ec85ab3fc7abd43c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 18 Dec 2009 22:19:43 -0600 Subject: [PATCH] Starting to play with TheOneRing inside of empathy :) --- Makefile | 1 + src/connection_manager.py | 9 +++++++++ src/gvoice/backend.py | 2 +- support/builddeb.py | 2 ++ support/theonering.profile | 11 +++++++++++ 5 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 support/theonering.profile diff --git a/Makefile b/Makefile index 2944e9c..402fda7 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ package: $(OBJ) $(foreach file, $(DATA), cp $(file) $(BUILD_PATH)/generic/$(subst /,-,$(file)) ; ) $(foreach file, $(SOURCE), cp $(file) $(BUILD_PATH)/generic/$(subst /,-,$(file)) ; ) cp support/$(PROJECT_NAME).manager $(BUILD_PATH)/generic + cp support/$(PROJECT_NAME).profile $(BUILD_PATH)/generic cp support/org.freedesktop.Telepathy.ConnectionManager.$(PROJECT_NAME).service $(BUILD_PATH)/generic cp support/icons/*-$(PROJECT_NAME).png $(BUILD_PATH)/generic/ cp support/builddeb.py $(BUILD_PATH)/generic diff --git a/src/connection_manager.py b/src/connection_manager.py index 16cfaf5..37202c3 100644 --- a/src/connection_manager.py +++ b/src/connection_manager.py @@ -1,3 +1,12 @@ +""" +Empathy Experience: + .profile file needs to be updated with proper presence + Conversations are incomplete + Conversations show the persons name, not needed due to aliases + Can't reopen a conversation for someone when I've already closed it + Can't call +""" + import logging import gobject diff --git a/src/gvoice/backend.py b/src/gvoice/backend.py index 034b7ab..b2b01a3 100755 --- a/src/gvoice/backend.py +++ b/src/gvoice/backend.py @@ -79,7 +79,7 @@ class GVoiceBackend(object): # Suprisingly, moving all of these from class to self sped up startup time - self._validateRe = re.compile("^[0-9]{10,}$") + self._validateRe = re.compile("^\+?[0-9]{10,}$") self._loginURL = "https://www.google.com/accounts/ServiceLoginAuth" diff --git a/support/builddeb.py b/support/builddeb.py index ef908f7..a8f4ddf 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -101,6 +101,8 @@ def build_package(distribution): for (oldName, newName) in files ) p["/usr/share/dbus-1/services"] = ["org.freedesktop.Telepathy.ConnectionManager.theonering.service"] + if distribution == "debian": + p["/usr/share/mission-control/profiles"] = ["theonering.profile"] p["/usr/share/telepathy/managers"] = ["theonering.manager"] p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-theonering.png|theonering.png"] p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-theonering.png|theonering.png"] diff --git a/support/theonering.profile b/support/theonering.profile new file mode 100644 index 0000000..f1addcf --- /dev/null +++ b/support/theonering.profile @@ -0,0 +1,11 @@ +[Profile] +Manager=theonering +Protocol=sip +DisplayName=Google Voice +IconName = im-google-talk +SupportsInvisible = 1 +Capabilities = chat-p2p, voice-p2p, supports-alias +VCardDefault = 1 +VCardField = X-GV +SupportedPresences = offline,available,away,extended-away,hidden,do-not-disturb + -- 1.7.9.5