embedding/components/windowwatcher/public/nsIDialogParamBlock.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:775e2b6255cc
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/. */
5
6 #include "nsISupports.idl"
7 interface nsIMutableArray;
8
9 /**
10 * An interface to pass strings, integers and nsISupports to a dialog
11 */
12
13 [scriptable, uuid(f76c0901-437a-11d3-b7a0-e35db351b4bc)]
14 interface nsIDialogParamBlock: nsISupports {
15
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 );
21
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 );
26
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);
32
33 /**
34 * A place where you can store an nsIMutableArray to pass nsISupports
35 */
36 attribute nsIMutableArray objects;
37 };
38
39 %{C++
40 #define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
41 %}
42

mercurial