ó ¾Ã9Qc@sEdZdZdefd„ƒYZdefd„ƒYZd„ZdS( sVThis module contains mainloop wrappers. Currently only glib main loops are supported.tMainLooptset_typecBsYeZdZdZd„Zed„ƒZd„Zd„Z d„Z d„Z d„Z RS( sAn abstract main loop wrapper class and factory. Use MainLoop() to get a main loop wrapper object for a main loop type previously registered with set_type(). Defaults to glib main loops. Actual main loop wrapper classes are derived from this class.cOs>tjdkrtjdƒntt|ƒjtj||ŽS(Ntglib(Rt_mainloop_classtNoneRtsupert__new__t_MainLoop__mainloop_class(tclstargstkwargs((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyR)scCsptjdk rtdƒ‚nitd6}||krG||t_n%td|dj|jƒƒfƒ‚dS(sxSet a main loop type for non-blocking interfaces. mltype: "glib" (currently only glib main loops are supported)s(The main loop type can only be set once.Rs2'%s' is not one of the valid main loop types (%s).t,N(RRRt RuntimeErrort GlibMainLoopt ValueErrortjointkeys(Rtmltypet ml_type_class((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyR0s  cCs tƒ‚dS(s$Returns if there are pending events.N(tNotImplementedError(tself((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pytpendingAscCs tƒ‚dS(s Iterates over one pending event.N(R(R((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pytiterateFscCs!x|jƒr|jƒqWdS(s!Iterates over all pending events.N(RR(R((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pytiterate_over_pending_eventsKscCs tƒ‚dS(sRuns the main loop.N(R(R((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pytrunQscCs tƒ‚dS(sQuits the main loop.N(R(R((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pytquitVsN( t__name__t __module__t__doc__RRRt classmethodRRRRRR(((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyRs     R cBseZd„ZRS(cCseddlm}|jƒ}|jƒ}||_|j|_|j|_|j|_|j |_ dS(Niÿÿÿÿ(t_gobject( tslip._wrappersRRt get_contextt _mainloopRt iterationRRR(RRtmltctx((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyt__init__^s      (RRR%(((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyR \scCs.ddlm}|dtƒtj|ƒdS(s¦Set a main loop type for non-blocking interfaces. mltype: "glib" (currently only glib main loops are supported) Deprecated, use MainLoop.set_type() instead.iÿÿÿÿ(twarnsuse MainLoop.set_type() insteadN(twarningsR&tDeprecationWarningRR(RR&((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyRjs N(sMainLoopsset_type(Rt__all__tobjectRR R(((s6/usr/lib/python2.7/site-packages/slip/dbus/mainloop.pyts=