From f4cebf70f88d6b30cb3cdaa7f71c9134ae2a26a7 Mon Sep 17 00:00:00 2001 From: campd Date: Tue, 30 Nov 2004 21:14:35 +0000 Subject: [PATCH] Use gaim to start conversations in other protocols (gaim patch not yet upstream) --- Tiles/Tile.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Tiles/Tile.cs b/Tiles/Tile.cs index 4888379b..7c62f287 100644 --- a/Tiles/Tile.cs +++ b/Tiles/Tile.cs @@ -202,7 +202,8 @@ namespace Beagle.Tile { } } - protected void SendImAim (string screenname) + protected void SendIm (string protocol, + string screename) { if (screenname == null || screenname == "") return; @@ -211,7 +212,7 @@ namespace Beagle.Tile { Process p = new Process (); p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = "gaim-remote"; - p.StartInfo.Arguments = "uri aim:goim?screenname=" + screenname; + p.StartInfo.Arguments = "uri " + "protocol" + " :goim?screenname=" + screenname; try { p.Start () ; @@ -220,24 +221,34 @@ namespace Beagle.Tile { } } + protected void SendImAim (string screenname) + { + SendIm ("aim", screename); + } + protected void SendImIcq (string screenname) { + SendIm ("icq", screename); } protected void SendImJabber (string screenname) { + SendIm ("jabber", screename); } protected void SendImMsn (string screenname) { + SendIm ("msn", screename); } protected void SendImYahoo (string screenname) { + SendIm ("yahoo", screename); } protected void SendImGroupwise (string screenname) { + SendIm ("novell", screename); } } } -- 2.11.4.GIT