%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/virtualbox/sdk/bindings/xpcom/python/xpcom/
Upload File :
Create Path :
Current File : //lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyo

�
�SK\c@s�ddlmZddlZddljZddlZddlZeegZ	d�Z
ejjej
�ej�aejjej
�ej�aej�aej�aejZddd��YZiaddd��YZd	efd
��YZe�a[ddd��YZd
efd��YZe�a[[ej Z ddd��YZ!ej�j"dtj#�Z$ej%j&e!�tj'�a(e$j)t(dd�[$[!dS(i(txpti����NcCsb|dkrtj}nFt|�tkr^t|�dkr^|ddkr^tt|�}n|S(Nit{(tNonet_xpcomtIID_nsISupportsttypetStringTypestlentgetattrt
interfaces(tiid((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt
_get_good_iid/s
4t_ComponentCollectioncBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs
d|_dS(N(Rt
_dict_data(tself((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__init__LscCs4|jdkr!|j�|_nt|jj��S(N(R
Rt_build_dicttlisttkeys(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRNscCs4|jdkr!|j�|_nt|jj��S(N(R
RRRtitems(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRRscCs4|jdkr!|j�|_nt|jj��S(N(R
RRRtvalues(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRVscCs.|jdkr!|j�|_nt|j�S(N(R
RRR(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__len___scCs6|jdk	r)||jkr)|j|S|j|�S(N(R
Rt_get_one(Rtattr((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__getattr__dscCs6|jdk	r)||jkr)|j|S|j|�S(N(R
RR(Rtitem((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__getitem__hs(	t__name__t
__module__RRRRRRR(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRHs							t
_InterfacecBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cCs!|j}||d<||d<dS(Nt_iidobj_tname(t__dict__(RRR
td((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRqs	
cCs(|j}t|d|�}t||�S(NR(RRtcmp(Rtothertthis_iidt	other_iid((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__cmp__vs	cCs%|j}t|d|�}||kS(NR(RR(RR#R$R%((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__eq__zs	cCs
t|j�S(N(thashR(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__hash__~scCs
t|j�S(N(tstrR(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__str__�scCstd��dS(Ns2components.interface objects are not subscriptable(t	TypeError(RR((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�scCstd��dS(Ns2components.interface objects are not subscriptable(R,(RRtvalue((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__setitem__�scCstd��dS(Ns6Can not set attributes on components.Interface objects(tAttributeError(RRR-((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt__setattr__�scCs�tj|j�}|dkrji}tj|j�}x!|jD]}|j||j<q@W|t|j<n||kr~||St	d|j|f��dS(Ns-'%s' interfaces do not define a constant '%s'(
t_constants_by_iid_maptgetRRRt	Interfacet	constantsR-RR/(RRtctitc_ob((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�s(RRRR&R'R)R+RR.R0R(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRos								t_InterfacescBseZd�Zd�ZRS(cCsqytj|�}WnBtjk
rW}ddlm}tj|jd|f��nXt|j�|j	��S(Ni(tnsErrors!The interface '%s' does not exist(
tinterfaceInfoManagertGetInfoForNametxpcomtCOMExceptiontR9tNS_ERROR_NO_INTERFACERtGetNametGetIID(RRRtwhyR9((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�s cCsti}tj�}x[|j�so|jdtj�}x3|D]+}t|j�|j��||j�<q=WqW|S(Ni�(	R:tEnumerateInterfacestIsDonet
FetchBlockRtIID_nsIInterfaceInfoRR@RA(RtrettenumRR((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�s
-(RRRR(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR8�s		t_ClasscBs2eZd�Zd�Zdd�Zdd�ZRS(cCs
||_dS(N(t
contractid(RRJ((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�scCsH|dkr+tj|j�}||_|Std|j|f��dS(Ntclsids%s class has no attribute '%s'(t	registrartcontractIDToCIDRJRKR/(RRtrc((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�s
	cCs�ddl}y |jj|jt|��SWn]|jk
r�}ddlm}|j|j	kr�|j|jd|jf��n�nXdS(Ni����i(R9sNo such component '%s'(
txpcom.clienttclientt	ComponentRJRR=R>R9terrnotNS_ERROR_FACTORY_NOT_REGISTERED(RR
R<tdetailsR9((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pytcreateInstance�s "cCstj|jt|��S(N(tserviceManagertgetServiceByContractIDRJR(RR
((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt
getService�sN(RRRRRRURX(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRI�s		
t_ClassescBs#eZd�Zd�Zd�ZRS(cCstj|�dS(N(RR(R((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�scCs
t|�S(N(RI(RR((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�scCsni}tj�}xU|j�ri|jdtj�}x-|D]%}t|j�}t|�||<q=WqW|S(Ni�(	RLtenumerateContractIDsthasMoreElementst
fetchBlockRtIID_nsISupportsCStringR*tdataRI(RRGRHRRR((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR�s
(RRRRR(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyRY�s		t_ShutdownObservercBseZejZd�ZRS(cCs@daaaaaaaat	j
j�t	jj�dS(N(
RtmanagerRLtclassesR	R:t_shutdownObserverRVR1R<RPt	_shutdowntserver(Rtservicettopictextra((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pytobserve�s"
(RRR	tnsIObservert_com_interfaces_Rh(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyR_�s	s@mozilla.org/observer-service;1sxpcom-shutdown(((((*R>RR<txpcom._xpcomRROtxpcom.servertbytesR*RRRPRQtGetComponentManagertIID_nsIComponentManagerR`tIID_nsIComponentRegistrarRLtXPTI_GetInterfaceInfoManagerR:tGetServiceManagerRVR=t	ExceptionRR1RR8R	RIRYRatIDR_RWtnsIObserverServicetsvcRdt
WrapObjectRiRbtaddObserver(((sA/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.pyt<module>'s8		%'			

Zerion Mini Shell 1.0