private void CapsManager_OnStreamChanged(object sender) { m_disco.JID = m_stream.JID; Jabber.Client.JabberClient jc = m_stream as Jabber.Client.JabberClient; if (jc == null) { return; } jc.OnBeforePresenceOut += new Jabber.Client.PresenceHandler(jc_OnBeforePresenceOut); jc.OnIQ += new Jabber.Client.IQHandler(jc_OnIQ); jc.OnPresence += new Jabber.Client.PresenceHandler(jc_OnPresence); }
public SendMessage(Jabber.Client.JabberClient jc) { InitializeComponent(); m_jc = jc; }
public SendMessage(Jabber.Client.JabberClient jc, string toJid) : this(jc) { txtTo.Text = toJid; }
public SendMessage(Jabber.Client.JabberClient jc) { InitializeComponent(); m_jc = jc; }
/// <summary> /// Log in to the server /// </summary> /// <param name="cli">The JabberClient instance to connect</param> /// <param name="propertyFile">The name of an XML file to store properties in.</param> /// <returns>True if the user clicked OK, false on cancel</returns> public static bool Login(Jabber.Client.JabberClient cli, string propertyFile) { return(new ClientLogin(cli).Login(propertyFile)); }
/// <summary> /// Create a Client Login dialog box than manages the connection properties of a particular client /// connection. /// </summary> /// <param name="cli">The client connection to modify</param> public ClientLogin(Jabber.Client.JabberClient cli) : this() { this.Xmpp = cli; }