Example #1
0
 /// <summary>
 /// Se produit lorsque le flux XMPP est disponible
 /// </summary>
 /// <param name="sender">Objet parent</param>
 private void xmppOnLogin(object sender)
 {
     Jabber.xmpp.DiscoInfo = Queries.getDiscoInfo();
     xmppDiscoServer();
     _queries = new Queries();
     _privacy = new Privacy();
     _bookmarks = new Bookmarks();
     _identity = new Identity(xmpp.MyJID);
     _identity.retrieve();
     _roster = new Roster();
     _presence = new Presence();
     OnConnected();
     xmpp.RequestRoster();
 }
Example #2
0
 /// <summary>
 /// Se produit lorsque le flux XMPP est fermé
 /// </summary>
 /// <param name="sender">Objet parent</param>
 private void xmppOnClose(object sender)
 {
     if (_bookmarks != null)
     {
         _bookmarks.Dispose();
         _bookmarks = null;
     }
     if (_privacy != null)
     {
         _privacy.Dispose();
         _privacy = null;
     }
     if (_identity != null)
     {
         _identity.Dispose();
         _identity = null;
     }
     if (_roster != null)
     {
         _roster.Dispose();
         _roster = null;
     }
     if (_presence != null)
     {
         _presence.Dispose();
         _presence = null;
     }
     if (_queries != null)
     {
         _queries.Dispose();
         _queries = null;
     }
     OnDisconnected();
 }