i+ ddZddlZddlZddlZddlmZddlmZddgZgdZ Gd d Z dS) zcUtilities for Server Side connections. A collection of helpers for server side connection points. N)olectl) COMExceptionEnumConnectionPointsFindConnectionPoint)EnumConnectionsUnadviseAdviseGetConnectionPointContainerGetConnectionInterfacecpeZdZeezZejejgZ dZ dZ dZ dZ dZdZdZdZd Zd Zd S) ConnectableServerc"d|_i|_dS)Nr)cookieNo connectionsselfs EC:\PYTHON\_runtimes\venv\Lib\site-packages\win32com/server/connect.py__init__zConnectableServer.__init__ s c4ttjNrwinerror E_NOTIMPLrs rrz!ConnectableServer.EnumConnections%8-...rc4ttjrrrs rr z(ConnectableServer.GetConnectionInterface(rrcJtjj|Sr)win32comserverutilwraprs rr z-ConnectableServer.GetConnectionPointContainer+s#((...rc ||jdtj}n-#tj$rt t jwxYw|xjdz c_||j |j<|jS)Nrscoder) QueryInterface_connect_interfaces_ pythoncom IID_IDispatch com_errorrrCONNECT_E_NOCONNECTIONrr)rpUnk interfaces rr zConnectableServer.Advise.s D++)!,i.EII" D D DV%BCCC C D  *3'}s +.*Ach |j|=dS#t$rttjwxYw)Nr$)rKeyErrorrr E_UNEXPECTED)rcookies rr zConnectableServer.Unadvise;sG < ((( < < <X%:;;; ; } ||f|z #tj$r }|||Yd}~7d}~wwxYwdSr)rvaluesr(r* _OnNotifyFail)r broadcaster extraArgsr-detailss r_BroadcastNotifyz"ConnectableServer._BroadcastNotifyKs)0022 7 7I 7 i\I5666& 7 7 7""9g66666666 7 7 7s 'AAAc*td|dS)Nz#Ignoring COM error to connection - )print)rr-r:s rr7zConnectableServer._OnNotifyFailTs ?G??@@@@@rN)__name__ __module__ __qualname__!IConnectionPointContainer_methodsIConnectionPoint_methods_public_methods_r(IID_IConnectionPointIID_IConnectionPointContainer_com_interfaces_rrr r r r rrr;r7rrrrs8;SS&/  /////////   <<<///333 777AAAAArr) __doc__r(win32com.server.utilrrr exceptionrrArBrrGrrrKs ######&<=R$S!=A=A=A=A=A=A=A=A=A=Ar