view plugins/mono/api/Event.cs @ 14166:fcae2cfe26eb

[gaim-migrate @ 16816] I will apologize in advance for this ugliness - it is necessary because we have a "connect" macro to cause the wgaim_connect() wrapper function to be used. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 17 Aug 2006 15:19:12 +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);
		}
	}
}