michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: michael@0: An interface used for runtime pseudo-aggregation of RDF delegate michael@0: objects. michael@0: michael@0: */ michael@0: michael@0: #include "nsrootidl.idl" michael@0: #include "nsISupports.idl" michael@0: interface nsIRDFResource; michael@0: michael@0: /** michael@0: * This interface should be implemented by an XPCOM factory that michael@0: * is registered to handle "@mozilla.org/rdf/delegate-factory/[key]/[scheme];1" michael@0: * ContractIDs. michael@0: * michael@0: * The factory will be invoked to create delegate objects from michael@0: * nsIRDFResource::GetDelegate(). michael@0: */ michael@0: [scriptable, uuid(A1B89470-A124-11d3-BE59-0020A6361667)] michael@0: interface nsIRDFDelegateFactory : nsISupports michael@0: { michael@0: /** michael@0: * Create a delegate for the specified RDF resource. michael@0: * michael@0: * The created delegate should forward AddRef() and Release() michael@0: * calls to the aOuter object. michael@0: */ michael@0: void CreateDelegate(in nsIRDFResource aOuter, michael@0: in string aKey, michael@0: in nsIIDRef aIID, michael@0: [retval, iid_is(aIID)] out nsQIResult aResult); michael@0: }; michael@0: michael@0: