001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIComponentRegistrar extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 12;
033:
034: public static final String NS_ICOMPONENTREGISTRAR_IID_STR = "2417cbfe-65ad-48a6-b4b6-eb84db174392";
035:
036: public static final nsID NS_ICOMPONENTREGISTRAR_IID = new nsID(
037: NS_ICOMPONENTREGISTRAR_IID_STR);
038:
039: public nsIComponentRegistrar(int /*long*/address) {
040: super (address);
041: }
042:
043: public int AutoRegister(int /*long*/aSpec) {
044: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
045: getAddress(), aSpec);
046: }
047:
048: public int AutoUnregister(int /*long*/aSpec) {
049: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
050: getAddress(), aSpec);
051: }
052:
053: public int RegisterFactory(nsID aClass, byte[] aClassName,
054: byte[] aContractID, int /*long*/aFactory) {
055: return XPCOM
056: .VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(),
057: aClass, aClassName, aContractID, aFactory);
058: }
059:
060: public int UnregisterFactory(nsID aClass, int /*long*/aFactory) {
061: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
062: getAddress(), aClass, aFactory);
063: }
064:
065: public int RegisterFactoryLocation(nsID aClass, byte[] aClassName,
066: byte[] aContractID, int /*long*/aFile, byte[] aLoaderStr,
067: byte[] aType) {
068: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
069: getAddress(), aClass, aClassName, aContractID, aFile,
070: aLoaderStr, aType);
071: }
072:
073: public int UnregisterFactoryLocation(nsID aClass,
074: int /*long*/aFile) {
075: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
076: getAddress(), aClass, aFile);
077: }
078:
079: public int IsCIDRegistered(nsID aClass, boolean[] _retval) {
080: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
081: getAddress(), aClass, _retval);
082: }
083:
084: public int IsContractIDRegistered(byte[] aContractID,
085: boolean[] _retval) {
086: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
087: getAddress(), aContractID, _retval);
088: }
089:
090: public int EnumerateCIDs(int /*long*/[] _retval) {
091: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
092: getAddress(), _retval);
093: }
094:
095: public int EnumerateContractIDs(int /*long*/[] _retval) {
096: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
097: getAddress(), _retval);
098: }
099:
100: public int CIDToContractID(nsID aClass, int /*long*/[] _retval) {
101: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
102: getAddress(), aClass, _retval);
103: }
104:
105: public int ContractIDToCID(byte[] aContractID, int /*long*/_retval) {
106: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
107: getAddress(), aContractID, _retval);
108: }
109: }
|