xpcom/ds/nsIPropertyBag2.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /* nsIVariant based Property Bag support. */
michael@0 6
michael@0 7 #include "nsIPropertyBag.idl"
michael@0 8
michael@0 9 [scriptable, uuid(625cfd1e-da1e-4417-9ee9-dbc8e0b3fd79)]
michael@0 10 interface nsIPropertyBag2 : nsIPropertyBag
michael@0 11 {
michael@0 12 // Accessing a property as a different type may attempt conversion to the
michael@0 13 // requested value
michael@0 14
michael@0 15 int32_t getPropertyAsInt32 (in AString prop);
michael@0 16 uint32_t getPropertyAsUint32 (in AString prop);
michael@0 17 int64_t getPropertyAsInt64 (in AString prop);
michael@0 18 uint64_t getPropertyAsUint64 (in AString prop);
michael@0 19 double getPropertyAsDouble (in AString prop);
michael@0 20 AString getPropertyAsAString (in AString prop);
michael@0 21 ACString getPropertyAsACString (in AString prop);
michael@0 22 AUTF8String getPropertyAsAUTF8String (in AString prop);
michael@0 23 boolean getPropertyAsBool (in AString prop);
michael@0 24
michael@0 25 /**
michael@0 26 * This method returns null if the value exists, but is null.
michael@0 27 */
michael@0 28 void getPropertyAsInterface (in AString prop,
michael@0 29 in nsIIDRef iid,
michael@0 30 [iid_is(iid), retval] out nsQIResult result);
michael@0 31
michael@0 32 /**
michael@0 33 * This method returns null if the value does not exist,
michael@0 34 * or exists but is null.
michael@0 35 */
michael@0 36 nsIVariant get (in AString prop);
michael@0 37
michael@0 38 /**
michael@0 39 * Check for the existence of a key.
michael@0 40 */
michael@0 41 boolean hasKey (in AString prop);
michael@0 42 };

mercurial