
    	h+                     \    S r SSKrSSKrSSKrSSKJr  SSKJr  SS/r/ SQr	 " S	 S
5      r
g)zcUtilities for Server Side connections.

A collection of helpers for server side connection points.
    N)olectl   )COMExceptionEnumConnectionPointsFindConnectionPoint)EnumConnectionsUnadviseAdviseGetConnectionPointContainerGetConnectionInterfacec                       \ rS rSr\\-   r\R                  \R                  /r
S rS rS rS rS rS rS rS	 rS
 rS rSrg)ConnectableServer   c                      SU l         0 U l        g )Nr   )cookieNoconnectionsselfs    jC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\win32com/server/connect.py__init__ConnectableServer.__init__    s        c                 4    [        [        R                  5      eNr   winerror	E_NOTIMPLr   s    r   r   !ConnectableServer.EnumConnections%       8--..r   c                 4    [        [        R                  5      er   r   r   s    r   r   (ConnectableServer.GetConnectionInterface(   r   r   c                 T    [         R                  R                  R                  U 5      $ r   )win32comserverutilwrapr   s    r   r   -ConnectableServer.GetConnectionPointContainer+   s    ##((..r   c                 .    UR                  U R                  S   [        R                  5      nU =R                  S-  sl        X R                  U R                  '   U R                  $ ! [        R                   a    [        [        R                  S9ef = f)Nr   scoder   )
QueryInterface_connect_interfaces_	pythoncomIID_IDispatch	com_errorr   r   CONNECT_E_NOCONNECTIONr   r   )r   pUnk	interfaces      r   r
   ConnectableServer.Advise.   s    	D++))!,i.E.EI
 	*3'}}	 "" 	DV%B%BCC	Ds   -A( (,Bc                 j     U R                   U	 g ! [         a    [        [        R                  S9ef = f)Nr)   )r   KeyErrorr   r   E_UNEXPECTED)r   cookies     r   r	   ConnectableServer.Unadvise;   s5    	<  ( 	<X%:%:;;	<s    "2c                 4    [        [        R                  5      er   r   r   s    r   r   &ConnectableServer.EnumConnectionPointsC   r   r   c                 t    XR                   ;   a)  [        R                  R                  R	                  U 5      $ g r   )r,   r#   r$   r%   r&   )r   iids     r   r   %ConnectableServer.FindConnectionPointF   s.    +++??'',,T22 ,r   c                     U R                   R                  5        H  n U" U4U-   6   M     g ! [        R                   a  nU R	                  X45         S nAM=  S nAff = fr   )r   valuesr-   r/   _OnNotifyFail)r   broadcaster	extraArgsr2   detailss        r   _BroadcastNotify"ConnectableServer._BroadcastNotifyK   sZ     ))002I7i\I56 3 && 7""9667s   	-AAAc                 "    [        SU< 35        g )Nz#Ignoring COM error to connection - )print)r   r2   rC   s      r   r@   ConnectableServer._OnNotifyFailT   s    3G;?@r   )r   r   N)__name__
__module____qualname____firstlineno__!IConnectionPointContainer_methodsIConnectionPoint_methods_public_methods_r-   IID_IConnectionPointIID_IConnectionPointContainer_com_interfaces_r   r   r   r   r
   r	   r   r   rD   r@   __static_attributes__ r   r   r   r      s[    8;SS&&//
///</3
7Ar   r   )__doc__r-   win32com.server.utilr#   r   r   	exceptionr   rM   rN   r   rT   r   r   <module>rX      s=   
     # &<=R$S ! =A =Ar   