gecko-dev/xpcom/components/nsIComponentManager.idl

107 строки
3.2 KiB
Plaintext
Исходник Обычный вид История

/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-05-21 15:12:37 +04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* The nsIComponentManager interface.
1999-09-05 10:27:42 +04:00
*/
#include "nsISupports.idl"
interface nsIFile;
interface nsIFactory;
interface nsIArray;
2000-01-25 00:28:28 +03:00
[scriptable, uuid(d604ffc3-1ba3-4f6c-b65f-1ed4199364c3)]
1999-09-05 10:27:42 +04:00
interface nsIComponentManager : nsISupports
{
2000-05-05 10:33:05 +04:00
/**
* getClassObject
2000-05-05 10:33:05 +04:00
*
* Returns the factory object that can be used to create instances of
* CID aClass
*
* @param aClass The classid of the factory that is being requested
*/
void getClassObject(in nsCIDRef aClass,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult result);
1999-09-05 10:27:42 +04:00
2000-05-05 10:33:05 +04:00
/**
* getClassObjectByContractID
2000-05-05 10:33:05 +04:00
*
* Returns the factory object that can be used to create instances of
* CID aClass
2000-05-05 10:33:05 +04:00
*
* @param aClass The classid of the factory that is being requested
2000-05-05 10:33:05 +04:00
*/
void getClassObjectByContractID(in string aContractID,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult result);
2000-05-05 10:33:05 +04:00
/**
2000-05-05 10:33:05 +04:00
* createInstance
*
* Create an instance of the CID aClass and return the interface aIID.
*
* @param aClass : ClassID of object instance requested
* @param aDelegate : Used for aggregation
* @param aIID : IID of interface requested
*/
void createInstance(in nsCIDRef aClass,
in nsISupports aDelegate,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult result);
1999-09-05 10:27:42 +04:00
/**
* createInstanceByContractID
2000-05-05 10:33:05 +04:00
*
* Create an instance of the CID that implements aContractID and return the
* interface aIID.
2000-05-05 10:33:05 +04:00
*
* @param aContractID : aContractID of object instance requested
2000-05-05 10:33:05 +04:00
* @param aDelegate : Used for aggregation
* @param aIID : IID of interface requested
*/
void createInstanceByContractID(in string aContractID,
in nsISupports aDelegate,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult result);
/**
* addBootstrappedManifestLocation
*
* Adds a bootstrapped manifest location on runtime.
*
* @param aLocation : A directory where chrome.manifest resides,
* or an XPI with it on the root.
*/
void addBootstrappedManifestLocation(in nsIFile aLocation);
/**
* removeBootstrappedManifestLocation
*
* Removes a bootstrapped manifest location on runtime.
*
* @param aLocation : A directory where chrome.manifest resides,
* or an XPI with it on the root.
*/
void removeBootstrappedManifestLocation(in nsIFile aLocation);
/**
* getManifestLocations
*
* Get an array of nsIURIs of all registered and builtin manifest locations.
*/
nsIArray getManifestLocations();
1999-09-05 10:27:42 +04:00
};
1999-09-05 10:27:42 +04:00
%{ C++
#ifdef MOZILLA_INTERNAL_API
1999-09-05 10:27:42 +04:00
#include "nsComponentManagerUtils.h"
#endif
1999-09-05 10:27:42 +04:00
%} C++