From: Pete C. <1...@23...> - 2003-10-22 15:30:36
|
I'm writing a protocol plug-in for Gaim, and I've got a couple of questions. First of all, proxying this protocol requires special arrangements. It can't be done through HTTP proxies for example. Is there any way for the plug-in to tell Gaim not to display the proxy selection drop-down list? Secondly, am I right that you can't add a new protocol without patching Gaim itself? As far as I can see, you need to edit the Gaim source code to add a new protocol constant, together with the case labels that translate between that and the corresponding string. Is this correct? Thanks for your help, and thanks for Gaim, it's great to be able to write a plug-in for such a mature application. Writing a completely new IM application would be a lot more work, and the end result would be much less useful. -- Pete |
From: Luca S. <ma...@sp...> - 2007-03-13 12:50:14
|
Hi, i'm trying to write a perl plugin that write in a text file the status of my contacts (i.e. i'd like to notify another app the online status of some of my friends). I wrote almost everything but i cannot find in gaim's api the function to retrieve the status of my contacts... Can anyone help me? Thanks in advance Luca |
From: Bryce C <Pl...@Br...> - 2003-10-22 22:58:48
|
In its latest incarnation, Gaim doesn't need a patch to add protocols (checked with .70). The best example of which is the gaim-blogger "protocol" [http://gaim-blogger.sf.net]. You just compile it with the gaim source code (gaim.h etc) and it installs at libblogger.so in Gaim's libs folder, linuxly speaking. There's also a dll available for windows machines that you just place in Gaim's folder. This is a relatively recent move int the Gaim project, i think, and a very good one too, especially for the core/ui split. I'm sorry if this is confusing as I'm not a Gaim developer etc but I do know this for a fact. On Wed, 2003-10-22 at 07:57, Pete Chown wrote: > I'm writing a protocol plug-in for Gaim, and I've got a couple of questio= ns. >=20 > First of all, proxying this protocol requires special arrangements. It=20 > can't be done through HTTP proxies for example. Is there any way for=20 > the plug-in to tell Gaim not to display the proxy selection drop-down lis= t? >=20 > Secondly, am I right that you can't add a new protocol without patching=20 > Gaim itself? As far as I can see, you need to edit the Gaim source code=20 > to add a new protocol constant, together with the case labels that=20 > translate between that and the corresponding string. Is this correct? >=20 > Thanks for your help, and thanks for Gaim, it's great to be able to=20 > write a plug-in for such a mature application. Writing a completely new=20 > IM application would be a lot more work, and the end result would be=20 > much less useful. --=20 Bryce C <Pl...@Br...> CoBryce Communications |
From: Herman B. <her...@ya...> - 2003-10-23 15:24:24
|
Pete Chown is correct.. a gaim protocol should have its ID in prpl.h. Just contact one of the gaim developers if you want one added. --- Bryce C <Pl...@Br...> wrote: > In its latest incarnation, Gaim doesn't need a patch to add protocols > (checked with .70). The best example of which is the gaim-blogger > "protocol" [http://gaim-blogger.sf.net]. You just compile it with the > gaim source code (gaim.h etc) and it installs at libblogger.so in > Gaim's > libs folder, linuxly speaking. There's also a dll available for > windows > machines that you just place in Gaim's folder. This is a relatively > recent move int the Gaim project, i think, and a very good one too, > especially for the core/ui split. > I'm sorry if this is confusing as I'm not a Gaim developer etc but I > do > know this for a fact. > > On Wed, 2003-10-22 at 07:57, Pete Chown wrote: > > I'm writing a protocol plug-in for Gaim, and I've got a couple of > questions. > > > > First of all, proxying this protocol requires special arrangements. > It > > can't be done through HTTP proxies for example. Is there any way > for > > the plug-in to tell Gaim not to display the proxy selection > drop-down list? > > > > Secondly, am I right that you can't add a new protocol without > patching > > Gaim itself? As far as I can see, you need to edit the Gaim source > code > > to add a new protocol constant, together with the case labels that > > translate between that and the corresponding string. Is this > correct? > > > > Thanks for your help, and thanks for Gaim, it's great to be able to > > > write a plug-in for such a mature application. Writing a > completely new > > IM application would be a lot more work, and the end result would > be > > much less useful. > -- > Bryce C <Pl...@Br...> > CoBryce Communications > > ATTACHMENT part 2 application/pgp-signature name=signature.asc __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Christian H. <ch...@gn...> - 2003-10-25 23:14:47
|
On Thu, Oct 23, 2003 at 07:54:29AM -0700, Herman Bloggs wrote: > Pete Chown is correct.. a gaim protocol should have its ID in prpl.h. > Just contact one of the gaim developers if you want one added. Not anymore. That table is needed for backward compatibility in the blist.xml file, but all new protocols get an ID string. The table shouldn't need to be updated anymore. Just make sure your prpl ID is prpl-name (or prpl-sfusername-name, as is standard with other plugins, but I don't think we've reached a decision on non-gaim prpl ID naming). Christian --=20 Christian Hammond <> The GNUpdate Project ch...@gn... <> http://www.gnupdate.org/ Murphy's 7th Law: If everything seems to be going well, you have obvious= ly overlooked something. |
From: Pete C. <1...@23...> - 2003-10-26 00:25:22
|
Bryce C wrote: > In its latest incarnation, Gaim doesn't need a patch to add protocols > (checked with .70). The best example of which is the gaim-blogger > "protocol" [http://gaim-blogger.sf.net]. There is support in the source code for gaim-blogger, unless I'm misunderstanding. In .../src/prpl.c, there is a line reading: case GAIM_PROTO_BLOGGER: return "prpl-blogger"; break; and another one that does the opposite, using strcmp. The blogger module is not included with Gaim. However, I'm thinking that perhaps it did require a small patch to Gaim itself. I never thought of integrating IM and blogging like that -- brilliant idea by whoever thought of it. > I'm sorry if this is confusing as I'm not a Gaim developer etc but I do > know this for a fact. I appreciate the information, don't worry. :-) -- Pete |