Mercurial > pidgin.yaz
comparison libpurple/plugins/mono/MPlugin.cs @ 15374:5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 20 Jan 2007 02:32:10 +0000 |
parents | |
children | 7ae72b7c02b1 |
comparison
equal
deleted
inserted
replaced
15373:f79e0f4df793 | 15374:5fe8042783c1 |
---|---|
1 using Gaim; | |
2 | |
3 public class MPlugin : GaimPlugin | |
4 { | |
5 public void HandleSig(object[] args) | |
6 { | |
7 Buddy buddy = (Buddy)args[0]; | |
8 Status old_status = (Status)args[1]; | |
9 Status status = (Status)args[2]; | |
10 | |
11 Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went from " + old_status.Id + " to " + status.Id + "\n"); | |
12 } | |
13 | |
14 public override void Load() | |
15 { | |
16 Debug.debug(Debug.INFO, "mplug", "loading...\n"); | |
17 | |
18 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/ | |
19 BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig)); | |
20 } | |
21 | |
22 public override void Unload() | |
23 { | |
24 Debug.debug(Debug.INFO, "mplug", "unloading...\n"); | |
25 } | |
26 | |
27 public override void Destroy() | |
28 { | |
29 Debug.debug(Debug.INFO, "mplug", "destroying...\n"); | |
30 } | |
31 | |
32 public override GaimPluginInfo Info() | |
33 { | |
34 return new GaimPluginInfo("C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled"); | |
35 } | |
36 } |