ó
ąxYc           @  se   d  Z  d d l m Z d d l m Z m Z d d l m Z d	 Z d e e e	  f d     YZ
 d S(
   u$   
Interface for Telnet applications.
i˙˙˙˙(   t   unicode_literals(   t   ABCMetat   abstractmethod(   t   with_metaclassu   TelnetApplicationt   TelnetApplicationc           B  s,   e  Z d  Z e d    Z e d    Z RS(   u   
    The interface which has to be implemented for any telnet application.
    An instance of this class has to be passed to `TelnetServer`.
    c         C  s   d S(   u  
        Called when a new client was connected.

        Probably you want to call `telnet_connection.set_cli` here to set a
        the CommandLineInterface instance to be used.
        Hint: Use the following shortcut: `prompt_toolkit.shortcuts.create_cli`
        N(    (   t   selft   telnet_connection(    (    sH   lib/python2.7/site-packages/prompt_toolkit/contrib/telnet/application.pyt   client_connected   s    c         C  s   d S(   u-   
        Called when a client quits.
        N(    (   R   R   (    (    sH   lib/python2.7/site-packages/prompt_toolkit/contrib/telnet/application.pyt   client_leaving   s    (   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    sH   lib/python2.7/site-packages/prompt_toolkit/contrib/telnet/application.pyR      s   
N(   u   TelnetApplication(   R   t
   __future__R    t   abcR   R   t   sixR   t   __all__t   objectR   (    (    (    sH   lib/python2.7/site-packages/prompt_toolkit/contrib/telnet/application.pyt   <module>   s
   