embedding/components/windowwatcher/public/nsIDialogParamBlock.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/components/windowwatcher/public/nsIDialogParamBlock.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 + 
     1.9 +#include "nsISupports.idl"
    1.10 +interface nsIMutableArray;
    1.11 +
    1.12 +/**
    1.13 + * An interface to pass strings, integers and nsISupports to a dialog
    1.14 + */
    1.15 +
    1.16 +[scriptable, uuid(f76c0901-437a-11d3-b7a0-e35db351b4bc)]
    1.17 +interface nsIDialogParamBlock:  nsISupports {
    1.18 +
    1.19 +  /** Get or set an integer to pass.
    1.20 +   * Index must be in the range 0..7
    1.21 +   */
    1.22 +  int32_t GetInt( in int32_t inIndex );
    1.23 +  void SetInt( in int32_t inIndex, in int32_t inInt );
    1.24 +
    1.25 +  /** Set the maximum number of strings to pass. Default is 16.
    1.26 +   * Use before setting any string (If you want to change it from the default).
    1.27 +   */
    1.28 +  void SetNumberStrings( in int32_t inNumStrings );
    1.29 +
    1.30 +  /** Get or set an string to pass.
    1.31 +    * Index starts at 0
    1.32 +    */
    1.33 +  wstring GetString( in int32_t inIndex );
    1.34 +  void SetString( in int32_t inIndex, in wstring inString);
    1.35 +  
    1.36 +  /**
    1.37 +   * A place where you can store an nsIMutableArray to pass nsISupports 
    1.38 +   */
    1.39 +  attribute nsIMutableArray objects;
    1.40 +};
    1.41 +
    1.42 +%{C++
    1.43 +#define NS_DIALOGPARAMBLOCK_CONTRACTID "@mozilla.org/embedcomp/dialogparam;1"
    1.44 +%}
    1.45 +

mercurial