nsISupports
Last changed in Gecko 1.2 Implemented by: @mozilla.org/file/directory_service;1
. To get an instance, use:
var properties = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties);
void get(in string prop, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result); |
void getKeys(out PRUint32 count, [array, size_is(count), retval] out string keys); |
boolean has(in string prop); |
void set(in string prop, in nsISupports value); |
void undefine(in string prop); |
Gets the XPCOM object associated with a particular name.
void get( in string prop, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result );
prop
iid
result
NS_ERROR_FAILURE
NS_ERROR_NO_INTERFACE
Returns an array of property names.
nsMemory.h defines the macro NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY, which can be used to free aKeys when it is no longer needed.
void getKeys( out PRUint32 count, [array, size_is(count), retval] out string keys );
count
keys
Tests if a property exists.
boolean has( in string prop );
prop
true
if the property exists, false
if the property does not exist.
Sets the XPCOM object associated with a particular name.
void set( in string prop, in nsISupports value );
prop
value
Undefines a property.
void undefine( in string prop );
prop
This interface was frozen for Gecko 1.2. See bug 162114 for details. From Gecko 2.0 interfaces are no longer frozen.