ó 毖Sc@sPdZdZddlZddlZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZddl m!Z!ddl"m#Z#d eeefZ$d Z%ej&d ƒZ'd e(fd „ƒYZ)defd„ƒYZ*dS(t BusConnectiontreStructuredTextiÿÿÿÿN(tBUS_DAEMON_IFACEtBUS_DAEMON_NAMEtBUS_DAEMON_PATHt BUS_SESSIONt BUS_STARTERt BUS_SYSTEMt DBUS_START_REPLY_ALREADY_RUNNINGtDBUS_START_REPLY_SUCCESStNAME_FLAG_ALLOW_REPLACEMENTtNAME_FLAG_DO_NOT_QUEUEtNAME_FLAG_REPLACE_EXISTINGtRELEASE_NAME_REPLY_NON_EXISTENTtRELEASE_NAME_REPLY_NOT_OWNERtRELEASE_NAME_REPLY_RELEASEDt REQUEST_NAME_REPLY_ALREADY_OWNERtREQUEST_NAME_REPLY_EXISTStREQUEST_NAME_REPLY_IN_QUEUEt REQUEST_NAME_REPLY_PRIMARY_OWNERtvalidate_bus_nametvalidate_error_nametvalidate_interface_nametvalidate_member_nametvalidate_object_path(t Connection(t DBusException(tHANDLER_RESULT_NOT_YET_HANDLED(tis_py2sWtype='signal',sender='%s',interface='%s',member='NameOwnerChanged',path='%s',arg0='%%s's)org.freedesktop.DBus.Error.NameHasNoOwnersdbus.bustNameOwnerWatchcBs eZdZd„Zd„ZRS(t_matcht _pending_callc s™tˆƒ‡fd†}‡‡fd†}|j|dtttdˆƒ|_i}trht|d|jjƒnd|_d|_dS(N(RR.tremoveRtcancel(R:((s./usr/lib64/python2.7/site-packages/dbus/bus.pyR?\s  (s_matchs _pending_call(t__name__t __module__t __slots__R=R?(((s./usr/lib64/python2.7/site-packages/dbus/bus.pyR:s cBsìeZdZeZeZeZe Z e Z edd„Zddddd„Zd„Zd„Zeed„Zd„Zdd„Zdd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Z d„Z!RS(sxA connection to a D-Bus daemon that implements the ``org.freedesktop.DBus`` pseudo-service. :Since: 0.81.0 cCs1|j|d|ƒ}tjƒ|_i|_|S(Ntmainloop(t _new_for_bustweakreftWeakValueDictionaryt _bus_namest_signal_sender_matches(tclstaddress_or_typeRCtbus((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt__new__ys c  s|jddƒ}|dk re|dk r9tdƒ‚n|}ddlm}|dtddƒntt|ƒj||||||‰|dk rñ|t krñ|d d krƇfd †} n ˆj } |j || ƒ} | |j ˆ(R"(tmatch(s./usr/lib64/python2.7/site-packages/dbus/bus.pyR#˜s (tpopR.t TypeErrortwarningsRNtDeprecationWarningtsuperRR7Rtset_sender_name_ownertwatch_name_ownerRHtadd_match_stringtstr( R:thandler_functiont signal_nametdbus_interfaceR0tpathR<RMRNR#twatch((RQs./usr/lib64/python2.7/site-packages/dbus/bus.pyR7„s&     cCsE|jt|ƒƒ|jj|dƒ}|dk rA|jƒndS(N(t remove_match_string_non_blockingRZRHRRR.R?(R:RQR_((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt_clean_up_signal_match¤s cCs‰|dk r|d dkr|tkry|j|ƒSWq…tk r}}|jƒtkrc‚n|j|ƒ|j|ƒSXn|SdS(NiRP(R.Rtget_name_ownerRR'R(tstart_service_by_name(R:R0R/((s./usr/lib64/python2.7/site-packages/dbus/bus.pytactivate_name_owner«s  cKs¿|r|jƒn|jdd ƒ}|d k rx|d k rLtdƒ‚nddlm}|dtddƒ|}n|r tdd j|jƒƒƒ‚n|j |||d |d |ƒS( sJReturn a local proxy for the given remote object. Method calls on the proxy are translated into method calls on the remote object. :Parameters: `bus_name` : str A bus name (either the unique name or a well-known name) of the application owning the object. The keyword argument named_service is a deprecated alias for this. `object_path` : str The object path of the desired object `introspect` : bool If true (default), attempt to introspect the remote object to find out supported methods and their signatures `follow_name_owner_changes` : bool If the object path is a well-known name and this parameter is false (default), resolve the well-known name to the unique name of its current owner and bind to that instead; if the ownership of the well-known name changes in future, keep communicating with the original owner. This is necessary if the D-Bus API used is stateful. If the object path is a well-known name and this parameter is true, whenever the well-known name changes ownership in future, bind to the new owner, if any. If the given object path is a unique name, this parameter has no effect. :Returns: a `dbus.proxies.ProxyObject` :Raises `DBusException`: if resolving the well-known name to a unique name fails RMs3bus_name and named_service cannot both be specifiediÿÿÿÿ(RNsiPassing the named_service parameter to get_object by name is deprecated: please use positional parametersROis4get_object does not take these keyword arguments: %ss, t introspecttfollow_name_owner_changesN( t_require_main_loopRRR.RSRTRNRUtjointkeystProxyObjectClass(R:R0t object_pathReRftkwargsRMRN((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt get_objectºs $     cCs)t|ƒ|jtttdd|fƒS(sêGet the numeric uid of the process owning the given bus name. :Parameters: `bus_name` : str A bus name, either unique or well-known :Returns: a `dbus.UInt32` :Since: 0.80.0 tGetConnectionUnixUserR6(Rt call_blockingRRR(R:R0((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt get_unix_userós  ic Cs2t|ƒt|jtttdd||fƒfS(s?Start a service which will implement the given bus name on this Bus. :Parameters: `bus_name` : str The well-known bus name to be activated. `flags` : dbus.UInt32 Flags to pass to StartServiceByName (currently none are defined) :Returns: A tuple of 2 elements. The first is always True, the second is either START_REPLY_SUCCESS or START_REPLY_ALREADY_RUNNING. :Raises `DBusException`: if the service could not be started. :Since: 0.80.0 tStartServiceByNametsu(RR8RoRRR(R:R0tflags((s./usr/lib64/python2.7/site-packages/dbus/bus.pyRcs  cCs2t|dtƒ|jtttdd||fƒS(s„Request a bus name. :Parameters: `name` : str The well-known name to be requested `flags` : dbus.UInt32 A bitwise-OR of 0 or more of the flags `NAME_FLAG_ALLOW_REPLACEMENT`, `NAME_FLAG_REPLACE_EXISTING` and `NAME_FLAG_DO_NOT_QUEUE` :Returns: `REQUEST_NAME_REPLY_PRIMARY_OWNER`, `REQUEST_NAME_REPLY_IN_QUEUE`, `REQUEST_NAME_REPLY_EXISTS` or `REQUEST_NAME_REPLY_ALREADY_OWNER` :Raises `DBusException`: if the bus daemon cannot be contacted or returns an error. t allow_uniquet RequestNameRr(RtFalseRoRRR(R:tnameRs((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt request_names cCs/t|dtƒ|jtttdd|fƒS(ssRelease a bus name. :Parameters: `name` : str The well-known name to be released :Returns: `RELEASE_NAME_REPLY_RELEASED`, `RELEASE_NAME_REPLY_NON_EXISTENT` or `RELEASE_NAME_REPLY_NOT_OWNER` :Raises `DBusException`: if the bus daemon cannot be contacted or returns an error. Rtt ReleaseNameR6(RRvRoRRR(R:Rw((s./usr/lib64/python2.7/site-packages/dbus/bus.pyt release_name1s  cCs8i}trt|ds  ”  +