view plugins/mono/api/Event.cs @ 12892:3ab3e68df807

[gaim-migrate @ 15245] These functions return a list of strings in C, in perl they were retuning a blessed object that didn't seem to have any use, so I made them return strings instead so they work "normally". I think this an improvement. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 16 Jan 2006 10:19:31 +0000
parents a3302d271199
children
line wrap: on
line source

using System;

namespace Gaim
{
	public class Event
	{
		private IntPtr handle;
		private string signal;
		
		public Event(IntPtr h, string s)
		{
			handle = h;
			signal = s;
		}
	
		public void connect(object plugin, Signal.Handler handler)
		{
			Signal.connect(handle, plugin, signal, handler);
		}
	}
}