Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
7 interface nsIMutableArray;
9 /**
10 * An interface to pass strings, integers and nsISupports to a dialog
11 */
13 [scriptable, uuid(f76c0901-437a-11d3-b7a0-e35db351b4bc)]
14 interface nsIDialogParamBlock: nsISupports {
16 /** Get or set an integer to pass.
17 * Index must be in the range 0..7
18 */
19 int32_t GetInt( in int32_t inIndex );
20 void SetInt( in int32_t inIndex, in int32_t inInt );
22 /** Set the maximum number of strings to pass. Default is 16.
23 * Use before setting any string (If you want to change it from the default).
24 */
25 void SetNumberStrings( in int32_t inNumStrings );
27 /** Get or set an string to pass.
28 * Index starts at 0
29 */
30 wstring GetString( in int32_t inIndex );
31 void SetString( in int32_t inIndex, in wstring inString);
33 /**
34 * A place where you can store an nsIMutableArray to pass nsISupports
35 */
36 attribute nsIMutableArray objects;
37 };
39 %{C++
40 #define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
41 %}