view libpurple/plugins/mono/api/Event.cs @ 30008:09ca9dfb2cfe

jabber: Fix a case where a broken server would hang the connection. This also fixes a few small leaks and updates a few strings to match scram_handle_challenge().
author Paul Aurich <paul@darkrain42.org>
date Fri, 21 May 2010 03:26:15 +0000
parents 93bfbda79bf6
children
line wrap: on
line source

using System;

namespace Purple
{
	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);
		}
	}
}