ó ¾Ã9Qc@sÊdZddlZddlZddlmZddlZdddgZda d„Z e a d„Z d „Z d „Zd adad„Zdejjfd„ƒYZdejjfd„ƒYZdS(sMThis module contains convenience functions for using dbus-activated services.iÿÿÿÿN(t_gobjecttObjectt InterfaceTypet set_mainloopcCstjƒdS(N(t __mainloop__tquit(((s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt__glib_quit_cb__%scCs |adS(N(R(tmainloop((s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyR0scCs |adS(N(t __quit_cb__(tquit_cb((s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt set_quit_cb5scCs tƒdS(N(R(((s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyR :st__slip_dbus_service_sender__t__slip_dbus_service_reply_cb__t__slip_dbus_service_error_cb__csûˆjdk r!ˆj‰t‰n t‰t‰ˆjdk rNˆj‰t‰n t‰t‰ˆ ‰‡‡‡‡‡‡fd†}xitd„tˆƒƒD]O}|dkr¶ˆ|_q˜|dkrΈ|_q˜t ||t ˆ|ƒƒq˜Wˆj |_ |S(Nc sˆjˆ ƒ}|dk rvˆˆd‰ˆˆd‰ˆrGˆˆ =nˆrfˆˆd=ˆˆd=nˆj|ƒntˆ dtˆddƒƒ‰|dk rûˆrû‡‡‡‡ ‡ ‡‡‡fd†}‡‡fd†}tj|ˆd|d|ƒn ˆ ˆˆˆŽ}ˆjƒ|SdS( Niit_slip_polkit_auth_requiredtdefault_polkit_auth_requiredcs®|rˆrˆˆˆˆŽq d}yˆˆˆˆŽ}Wntk rV}|}nX|rjˆ|ƒq |dkr€ˆƒq ˆ|ƒnˆtjˆƒƒˆjƒdS(N(tNonet ExceptiontpolkittNotAuthorizedExceptionttimeout_restart(tis_authterrortresultte(t action_idterror_cbtktmethodtmethod_is_asynctptreply_cbtself(s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt reply_handlerms     csˆ|ƒˆjƒdS(N(R(R(RR (s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt error_handlers R!R"(tgetRt sender_seentgetattrRtIsSystemBusNameAuthorizedAsyncR(R RRtsenderR!R"tretval(tasync_callbacksthide_async_callbacksthide_sender_keywordRRtsender_keyword(RRRRRR s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pytwrapped_methodWs*      $" cSs|d dkS(Nit_dbus_((tx((s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt›st_dbus_sender_keywordt_dbus_async_callbacks( R1RtFalsetSENDER_KEYWORDtTrueR2tASYNC_CALLBACKStfiltertdirtsetattrR%t func_name(RR-tattr((R)R*R+RRR,s5/usr/lib/python2.7/dist-packages/slip/dbus/service.pyt wrap_methodDs(    D     cBseZd„ZRS(cCsax?|jƒD]1\}}t|dtƒr t|ƒ||s"        f