Mercurial > pidgin.yaz
comparison libpurple/plugins/mono/GetBuddyBack.cs @ 15877:80ee585fb53c
SF Patch #1686400 from Eoin Coffey ("ecoffey")
ecoffey described the changes:
1) Small tweaks to the loader to bring it up to speed with new mono
versions and API wrapper changes that grim had made. (was in original
patch, just forgot about it :-P)
2) .NET Plugins are now required to define an Id as part of their info.
3) Modified gaim_probe_plugin to check for existence of info->id and to
make sure it's not empty; Prints an error, stores an error in the plugin
and sets plugin->unloadable = TRUE.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 24 Mar 2007 06:24:59 +0000 |
parents | 7ae72b7c02b1 |
children |
comparison
equal
deleted
inserted
replaced
15875:23367ba62f59 | 15877:80ee585fb53c |
---|---|
1 using Gaim; | 1 using Purple; |
2 | 2 |
3 public class GetBuddyBack : Plugin | 3 public class GetBuddyBack : Plugin |
4 { | 4 { |
5 private static PluginInfo info = new PluginInfo("C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled"); | 5 private static PluginInfo info = new PluginInfo("mono-buddyback", "C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled"); |
6 | 6 |
7 public GetBuddyBack() | 7 public GetBuddyBack() |
8 : base (info) | 8 : base (info) |
9 { | 9 { |
10 } | 10 } |
19 public override void Load() | 19 public override void Load() |
20 { | 20 { |
21 Debug.debug(Debug.INFO, "buddyback", "loading...\n"); | 21 Debug.debug(Debug.INFO, "buddyback", "loading...\n"); |
22 | 22 |
23 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-back", new Signal.Handler(HandleSig));*/ | 23 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-back", new Signal.Handler(HandleSig));*/ |
24 /*BuddyList.OnBuddyBack.connect(this, new Signal.Handler(HandleSig));*/ | 24 BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig)); |
25 } | 25 } |
26 | 26 |
27 public override void Unload() | 27 public override void Unload() |
28 { | 28 { |
29 } | 29 } |