Searched refs:iid (Results 1 - 25 of 138) sorted by relevance

123456

/vbox/src/libs/xpcom18a4/java/src/org/virtualbox/
H A DVBoxObjectBase.java17 public nsISupports queryInterface(String iid) argument
19 return org.mozilla.xpcom.Mozilla.queryInterface(this, iid);
/vbox/src/libs/xpcom18a4/python/server/
H A D__init__.py55 def WrapObject(ob, iid, policy = None, bWrapClient = 1):
58 If iid is None, it will use the first interface the object indicates it supports.
64 return _xpcom.WrapObject(policy( ob, iid ), iid, bWrapClient)
83 iid = _xpcom.IID_nsIModule
84 return WrapObject(loader.MakePythonComponentLoaderModule(serviceManager, nsIFile), iid, bWrapClient = 0)
H A Dpolicy.py139 def __init__(self, instance, iid):
142 self._iid_ = iid
147 if iid != IID_nsISupports and iid not in ni:
152 if delegate_qi is None or not delegate_qi(iid):
158 def _QueryInterface_(self, com_object, iid):
161 if iid in self._nominated_interfaces_:
170 return xpcom.server.WrapObject(self._obj_, iid, bWrapClient = 0)
173 if iid == _xpcom.IID_nsIClassInfo:
185 return delegate(iid)
[all...]
/vbox/src/libs/xpcom18a4/python/src/
H A DPyIComponentManager.cpp51 static const nsIID iid = NS_GET_IID(nsIComponentManager); local
53 if (!Py_nsISupports::Check(self, iid)) {
77 nsIID iid;
79 iid = NS_GET_IID(nsISupports);
81 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
87 r = pI->CreateInstanceByContractID(pid, NULL, iid, getter_AddRefs(pis));
93 return Py_nsISupports::PyObjectFromInterface(pis, iid, PR_FALSE);
113 nsIID iid;
115 iid = NS_GET_IID(nsISupports);
117 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
[all...]
H A DPyIComponentManagerObsolete.cpp51 static const nsIID iid = NS_GET_IID(nsIComponentManagerObsolete); local
53 if (!Py_nsISupports::Check(self, iid)) {
74 nsIID iid;
76 iid = NS_GET_IID(nsISupports);
78 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
84 r = pI->CreateInstanceByContractID(pid, NULL, iid, (void **)&pis);
90 return Py_nsISupports::PyObjectFromInterface(pis, iid, PR_FALSE, PR_FALSE);
102 nsIID iid;
105 r = pI->ContractIDToClassID(pid, &iid);
110 return Py_nsIID::PyObjectFromIID(iid);
[all...]
H A DPyIID.cpp75 nsIID iid; local
77 iid.m0 = XPT_SWAB32(*((PRUint32 *)ptr));
79 iid.m1 = XPT_SWAB16(*((PRUint16 *)ptr));
81 iid.m2 = XPT_SWAB16(*((PRUint16 *)ptr));
84 iid.m3[i] = *((PRUint8 *)ptr);
87 return new Py_nsIID(iid);
95 nsIID iid;
96 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
98 return new Py_nsIID(iid);
104 nsIID iid; local
232 const nsIID &iid = ((Py_nsIID *)self)->m_iid; local
[all...]
H A DPyIEnumerator.cpp52 nsIID iid = NS_GET_IID(nsIEnumerator); local
54 if (!Py_nsISupports::Check(self, iid)) {
99 nsIID iid(NS_GET_IID(nsISupports));
100 if (obIID != NULL && !Py_nsIID::IIDFromPyObject(obIID, &iid))
116 r = pRet->QueryInterface(iid, (void **)&temp);
124 PyObject *ret = Py_nsISupports::PyObjectFromInterface(pRet, iid);
140 nsIID iid(NS_GET_IID(nsISupports));
141 if (obIID != NULL && !Py_nsIID::IIDFromPyObject(obIID, &iid))
166 r = pNew->QueryInterface(iid, (void **)&temp);
184 PyObject *new_ob = Py_nsISupports::PyObjectFromInterface(fetched[i], iid);
[all...]
H A DPyISimpleEnumerator.cpp52 nsIID iid = NS_GET_IID(nsISimpleEnumerator); local
54 if (!Py_nsISupports::Check(self, iid)) {
87 nsIID iid(NS_GET_IID(nsISupports));
88 if (obIID != NULL && !Py_nsIID::IIDFromPyObject(obIID, &iid))
104 r = pRet->QueryInterface(iid, (void **)&temp);
112 PyObject *ret = Py_nsISupports::PyObjectFromInterface(pRet, iid);
128 nsIID iid(NS_GET_IID(nsISupports));
129 if (obIID != NULL && !Py_nsIID::IIDFromPyObject(obIID, &iid))
158 r = pNew->QueryInterface(iid, (void **)&temp);
174 PyObject *new_ob = Py_nsISupports::PyObjectFromInterface(fetched[i], iid);
[all...]
H A DPyXPCOM.h231 const nsIID &iid,
313 const nsIID &iid,
324 // If |iid|==nsIVariant, then arbitary Python objects will be wrapped
328 const nsIID &iid,
337 const nsIID &iid,
340 static Py_nsISupports *Constructor(nsISupports *pInitObj, const nsIID &iid);
349 static void RegisterInterface( const nsIID &iid, PyTypeObject *t);
362 virtual PyObject *MakeInterfaceResult(nsISupports *ps, const nsIID &iid, argument
364 return PyObjectFromInterface(ps, iid, bMakeNicePyObject);
371 const nsIID &iid,
409 IsEqual(Py_nsIID &iid) argument
414 PyObjectFromIID(const nsIID &iid) argument
572 PyXPCOM_XPTStub(PyObject *instance, const nsIID &iid) argument
[all...]
H A DPyISupports.cpp81 PyXPCOM_LogWarning("#%u: %p iid=%RTuuid obj=%p", i, pCur, &pCur->m_iid, pISup);
99 RTPrintf("#%u: %p iid=%RTuuid obj=%p\n", i, pCur, &pCur->m_iid, pISup);
118 const nsIID &iid,
121 return Py_nsISupports::PyObjectFromInterface(aInterface, iid,
131 Py_nsISupports::Py_nsISupports(nsISupports *punk, const nsIID &iid, PyTypeObject *this_type) argument
135 m_iid = iid;
146 PyXPCOM_LogWarning("Creating %p: iid=%RTuuid obj=%p", this, &m_iid, punk);
157 PyXPCOM_LogWarning("Destroying %p: iid=%RTuuid obj=%p", this, &m_iid, punk);
237 Py_nsISupports::Constructor(nsISupports *pInitObj, const nsIID &iid) argument
240 iid,
117 PyObject_FromNSInterface( nsISupports *aInterface, const nsIID &iid, PRBool bMakeNicePyObject ) argument
245 InterfaceFromPyISupports(PyObject *ob, const nsIID &iid, nsISupports **ppv) argument
294 InterfaceFromPyObject(PyObject *ob, const nsIID &iid, nsISupports **ppv, PRBool bNoneOK, PRBool bTryAutoWrap ) argument
371 RegisterInterface( const nsIID &iid, PyTypeObject *t) argument
446 MakeDefaultWrapper(PyObject *pyis, const nsIID &iid) argument
[all...]
H A DPyGWeakReference.cpp98 PyXPCOM_GatewayWeakReference::QueryReferent(REFNSIID iid, void * *ret) argument
109 nsresult nr = m_pBase->QueryInterface(iid, ret);
H A DPyIInterfaceInfoManager.cpp53 nsIID iid = NS_GET_IID(nsIInterfaceInfoManager); local
55 if (!Py_nsISupports::Check(self, iid)) {
72 nsIID iid;
73 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
79 r = pI->GetInfoForIID(&iid, getter_AddRefs(pi));
125 nsIID iid;
126 if (!Py_nsIID::IIDFromPyObject(obIID, &iid))
132 r = pI->GetNameForIID(&iid, &ret_name);
/vbox/src/libs/xpcom18a4/xpcom/components/
H A DnsIFactory.idl55 * @param iid The IID of the interface being requested in
65 void createInstance(in nsISupports aOuter, in nsIIDRef iid,
66 [retval, iid_is(iid)] out nsQIResult result);
/vbox/src/libs/xpcom18a4/xpcom/sample/
H A DnsSample.js34 QueryInterface: function (iid) {
35 if (iid.equals(Components.interfaces.nsISample) ||
36 iid.equals(Components.interfaces.nsISupports))
76 getClassObject: function (compMgr, cid, iid) {
80 if (!iid.equals(Components.interfaces.nsIFactory))
95 * Construct an instance of the interface specified by iid, possibly
100 createInstance: function (outer, iid) {
101 debug("CI: " + iid + "\n");
105 return (new mySample()).QueryInterface(iid);
/vbox/src/libs/xpcom18a4/xpcom/proxy/public/
H A DnsIProxyCreateInstance.idl45 in nsIIDRef iid,
50 in nsIIDRef iid,
H A DnsIProxyObjectManager.idl46 in nsIIDRef iid,
49 [iid_is(iid),retval] out nsQIResult result);
54 in nsIIDRef iid,
56 [iid_is(iid),retval] out nsQIResult result);
/vbox/src/libs/xpcom18a4/python/client/
H A D__init__.py96 # Keyed by [iid][name], each item is an unbound method.
111 def BuildMethod(method_info, iid):
114 return interface_method_cache[iid][name]
123 ## print "Method Code for %s (%s):" % (name, iid)
130 if not interface_method_cache.has_key(iid):
131 interface_method_cache[iid] = {}
132 interface_method_cache[iid][name] = ret
140 def BuildInterfaceInfo(iid):
142 ret = interface_cache.get(iid, None)
150 interface = xpt.Interface(iid)
[all...]
/vbox/src/libs/xpcom18a4/xpcom/glue/
H A DnsCOMPtr.cpp93 nsCOMPtr_base::assign_from_qi( const nsQueryInterface qi, const nsIID& iid )
96 if ( NS_FAILED( qi(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) )
102 nsCOMPtr_base::assign_from_qi_with_error( const nsQueryInterfaceWithError& qi, const nsIID& iid )
105 if ( NS_FAILED( qi(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) )
111 nsCOMPtr_base::assign_from_helper( const nsCOMPtr_helper& helper, const nsIID& iid )
114 if ( NS_FAILED( helper(iid, NS_REINTERPRET_CAST(void**, &newRawPtr)) ) )
/vbox/src/libs/xpcom18a4/python/test/
H A Dtest_components.py50 iid = xpcom.components.interfaces.nsISupports
51 assert iid == xpcom._xpcom.IID_nsISupports, "Got the wrong IID!"
52 iid = xpcom.components.interfaces['nsISupports']
53 assert iid == xpcom._xpcom.IID_nsISupports, "Got the wrong IID!"
57 for name, iid in xpcom.components.interfaces.items():
61 assert iid == xpcom._xpcom.IID_nsISupports, "Got the wrong IID!"
62 assert xpcom.components.interfaces[name] == iid
/vbox/src/libs/xpcom18a4/xpcom/proxy/src/
H A DnsIProxyCreateInstance.h27 /* void CreateInstanceByIID (in nsIIDRef cid, in nsISupports aOuter, in nsIIDRef iid, out voidStar result); */
28 NS_IMETHOD CreateInstanceByIID(const nsIID & cid, nsISupports *aOuter, const nsIID & iid, void * *result) = 0;
30 /* void CreateInstanceByContractID (in string aContractID, in nsISupports aOuter, in nsIIDRef iid, out voidStar result); */
31 NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aOuter, const nsIID & iid, void * *result) = 0;
/vbox/src/libs/xpcom18a4/xpcom/ds/
H A DnsIProperties.idl53 * given iid.
55 void get(in string prop, in nsIIDRef iid,
56 [iid_is(iid),retval] out nsQIResult result);
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsMultiplexInputStream.h60 REFNSIID iid,
/vbox/src/libs/xpcom18a4/python/
H A Dcomponents.py47 def _get_good_iid(iid):
48 if iid is None:
49 iid = _xpcom.IID_nsISupports
50 elif type(iid) in StringTypes and len(iid)>0 and iid[0] != "{":
51 iid = getattr(interfaces, iid)
52 return iid
113 def __init__(self, name, iid)
[all...]
/vbox/src/libs/xpcom18a4/xpcom/typelib/xpt/tools/
H A Dxpt_link.c77 static void print_IID(struct nsID *iid, FILE *file);
81 nsID iid; member in struct:fixElement
313 fix_array[k].iid = IDE_array[k].iid;
416 (compare_IIDs(&IDE_array[i-1].iid, &IDE_array[i].iid) == 0))
446 print_IID(&IDE_array[i].iid, stderr);
448 print_IID(&IDE_array[i-1].iid, stderr);
542 if (compare_IIDs(&IDE_array[i-1].iid, &IDE_array[i].iid)
866 print_IID(struct nsID *iid, FILE *file) argument
[all...]
/vbox/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/
H A DnsIInterfaceInfoManager.idl50 nsIInterfaceInfo getInfoForIID(in nsIIDPtr iid);
54 string getNameForIID(in nsIIDPtr iid);

Completed in 69 milliseconds

123456