Ñò
¤Nc           @   s—   d  d k  l Z l Z l Z d  d k Z d  d k Td  d k l Z d Z d Z	 d Z
 d d d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   getAttrt   getChildt   jidAttrN(   t   *(   t   noexcepti    i   i   t   Entityc           B   sD   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   i    c         C   s=   t  i d 7_ | |  _ d  |  _ | |  _ t i ƒ  |  _ d  S(   Ni   (   R   t   countt   typet   Nonet
   connectiont   idt   Eventt   eventDisconnected(   t   selfR   R
   (    (    s   scripts/common/xmpp/Entities.pyt   __init__   s
    			c         C   s   t  i d 8_ d  S(   Ni   (   R   R   (   R   (    (    s   scripts/common/xmpp/Entities.pyt   __del__   s    c         C   s   d  S(   N(    (   R   t   stanza(    (    s   scripts/common/xmpp/Entities.pyt   onStanza   s    c         C   s   d  |  _ |  i ƒ  d  S(   N(   R   R	   R   (   R   (    (    s   scripts/common/xmpp/Entities.pyt   onDisconnected    s    	c         C   s   d  S(   N(    (   R   (    (    s   scripts/common/xmpp/Entities.pyt   onConnected$   s    c         C   s"   | o | |  _  |  i ƒ  n d  S(   N(   R	   R   (   R   R	   (    (    s   scripts/common/xmpp/Entities.pyt   connect'   s    	(	   t   __name__t
   __module__R   R   R   R   R   R   R   (    (    (    s   scripts/common/xmpp/Entities.pyR      s   	
				t   Sessionc           B   s   e  Z d  „  Z RS(   c         C   sM   t  i |  | t ƒ | |  _ t i ƒ  |  _ t i ƒ  |  _ t i ƒ  |  _ d  S(   N(   R   R   t   TYPE_SESSIONt   clan_conferenceR   t   eventMessaget   eventFriendOnlinet   eventFriendOffline(   R   R	   R   (    (    s   scripts/common/xmpp/Entities.pyR   .   s
    	(   R   R   R   (    (    (    s   scripts/common/xmpp/Entities.pyR   ,   s   t   MUCc           B   s   e  Z d  „  Z RS(   c         C   sM   t  i |  t | ƒ | |  _ t i ƒ  |  _ t i ƒ  |  _ t i ƒ  |  _ d  S(   N(   R   R   t   TYPE_MUCt   room_jidR   R   t   eventUserOnlinet   eventUserOffline(   R   R
   t   room(    (    s   scripts/common/xmpp/Entities.pyR   9   s
    	(   R   R   R   (    (    (    s   scripts/common/xmpp/Entities.pyR   7   s   (    (   t   xmpp.StanzasR    R   R   R   t   debug_utilst   wotdecoratorsR   t	   TYPE_NONER   R   R   R   R   (    (    (    s   scripts/common/xmpp/Entities.pyt   <module>   s   
 