michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * 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: /* nsIVariant based Property Bag support. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIVariant; michael@0: interface nsISimpleEnumerator; michael@0: michael@0: [scriptable, uuid(bfcd37b0-a49f-11d5-910d-0010a4e73d9a)] michael@0: interface nsIPropertyBag : nsISupports michael@0: { michael@0: /** michael@0: * Get a nsISimpleEnumerator whose elements are nsIProperty objects. michael@0: */ michael@0: readonly attribute nsISimpleEnumerator enumerator; michael@0: michael@0: /** michael@0: * Get a property value for the given name. michael@0: * @throws NS_ERROR_FAILURE if a property with that name doesn't michael@0: * exist. michael@0: */ michael@0: nsIVariant getProperty(in AString name); michael@0: }; michael@0: michael@0: