2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-12-29 23:55:42 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2002-08-27 00:36:44 +04:00
|
|
|
/*
|
|
|
|
* Simple mapping service interface.
|
|
|
|
*/
|
|
|
|
|
|
|
|
[scriptable, uuid(78650582-4e93-4b60-8e85-26ebd3eb14ca)]
|
1999-12-29 23:55:42 +03:00
|
|
|
interface nsIProperties : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
2002-08-27 00:36:44 +04:00
|
|
|
* Gets a property with a given name.
|
|
|
|
*
|
2013-05-16 16:26:55 +04:00
|
|
|
* @throws NS_ERROR_FAILURE if a property with that name doesn't exist.
|
|
|
|
* @throws NS_ERROR_NO_INTERFACE if the found property fails to QI to the
|
2002-08-27 00:36:44 +04:00
|
|
|
* given iid.
|
1999-12-29 23:55:42 +03:00
|
|
|
*/
|
2002-08-27 00:36:44 +04:00
|
|
|
void get(in string prop, in nsIIDRef iid,
|
|
|
|
[iid_is(iid),retval] out nsQIResult result);
|
1999-12-29 23:55:42 +03:00
|
|
|
|
|
|
|
/**
|
2002-08-27 00:36:44 +04:00
|
|
|
* Sets a property with a given name to a given value.
|
1999-12-29 23:55:42 +03:00
|
|
|
*/
|
2002-08-27 00:36:44 +04:00
|
|
|
void set(in string prop, in nsISupports value);
|
1999-12-29 23:55:42 +03:00
|
|
|
|
|
|
|
/**
|
2002-08-27 00:36:44 +04:00
|
|
|
* Returns true if the property with the given name exists.
|
1999-12-29 23:55:42 +03:00
|
|
|
*/
|
2002-08-27 00:36:44 +04:00
|
|
|
boolean has(in string prop);
|
1999-12-29 23:55:42 +03:00
|
|
|
|
|
|
|
/**
|
2002-08-27 00:36:44 +04:00
|
|
|
* Undefines a property.
|
2013-05-16 16:26:55 +04:00
|
|
|
* @throws NS_ERROR_FAILURE if a property with that name doesn't
|
2002-08-27 00:36:44 +04:00
|
|
|
* already exist.
|
1999-12-29 23:55:42 +03:00
|
|
|
*/
|
2002-08-27 00:36:44 +04:00
|
|
|
void undefine(in string prop);
|
1999-12-29 23:55:42 +03:00
|
|
|
|
|
|
|
/**
|
2002-08-27 00:36:44 +04:00
|
|
|
* Returns an array of the keys.
|
1999-12-29 23:55:42 +03:00
|
|
|
*/
|
2019-05-14 21:46:13 +03:00
|
|
|
Array<ACString> getKeys();
|
1999-12-29 23:55:42 +03:00
|
|
|
};
|