Starting to play with TheOneRing inside of empathy :)
authorEd Page <eopage@byu.net>
Sat, 19 Dec 2009 04:19:43 +0000 (22:19 -0600)
committerEd Page <eopage@byu.net>
Sat, 19 Dec 2009 04:19:43 +0000 (22:19 -0600)
Makefile
src/connection_manager.py
src/gvoice/backend.py
support/builddeb.py
support/theonering.profile [new file with mode: 0644]

index 2944e9c..402fda7 100644 (file)
--- 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
index 16cfaf5..37202c3 100644 (file)
@@ -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
index 034b7ab..b2b01a3 100755 (executable)
@@ -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"
 
index ef908f7..a8f4ddf 100755 (executable)
@@ -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 (file)
index 0000000..f1addcf
--- /dev/null
@@ -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
+